Memory error

2006-01-05 Thread esily
the project that only copy the data of Ram to card,on the zodic, runs 
successfully,but on the NX73,there is a error about "MemoryMgr.c,Line:3649,Nil 
ptr",how did the error occure?
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Tungsten T5 ROM

2006-01-05 Thread Andy Bell
Hi All,

I am trying to download the ROM of a Tungsten T5 but it keeps crashing
after around 20% of the transfer.  I am using the Emulator on windows
and the Transfer.prc for the palm.
Any ideas?  Is there somewhere I can download the ROM?

Thanks in advance
Andy


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


re: Palm SDK 5.1

2006-01-05 Thread Andy Bell
On Thu, 2006-01-05 at 05:18 +, David Oldis wrote:
> The standard libraries are already in the palm device.  The API
> headers are only used to call into them.  It's not like it is when you
> develop on a PC where you have to link in the libs.  
> 
> But...you will most likely need to include one of the variety of
> runtime libs and, depending on what you're doing, the palmOSGlue lib.
> Other than that you should be good to go.
> 
> The headers are backward compatible.  Just make sure that whatever
> function you're using is targeted for the device that you're writing
> for.  Don't expect a 5.0 defined function to work on a 3.5 device,
> etc.

Thanks David.
Andy


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


How can we create a custom control like ActiveX control in windows?

2006-01-05 Thread Mehul Patel
Hi,

  How do we create a custom control in Palm environment (just like an ActiveX 
control in windows envronment). For example, Custom textbox control with 
additional features...
  Which we can use in other application just like plug the Custom control in 
any application and start using it..

Your time and help is much appreciated.

Best regards,
 Chirag

  
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


How to get the control which loads Current Time Application?

2006-01-05 Thread Shankari G
I am basically trying to load my application when the user taps on clock icon on the graffiti indicator.
 
Normally when the user taps on the clock icon the current Time application screen will show the current date and time.Instead I need my application to be poped up . can anybody help me??
 
thanks in advance,
shankari.
 
 
 
 

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

How to get the control which loads the current Time display application?

2006-01-05 Thread Shankari G
Hi All,
I am basically trying to load my application when the user taps on clock icon on the graffiti indicator. 
 
Normally when the user taps on the clock icon the current Time application screen will show the current date and time.Instead I need my application to be poped up . can anybody help me??
 
thanks in advance,
shankari.
 
 

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

How to get the control which loads the current Time display application?

2006-01-05 Thread Shankari G
Hi All,
 I am basically trying to load my application when the user taps on clock icon 
on the graffiti indicator.Normally when the user taps on the clock icon the 
current Time application screen will show the current date and time.Instead I 
need my application to be poped up . can anybody help me??

thanks in advance,
shankari.


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Memory leaks

2006-01-05 Thread Michal Seliga
try your application on palm emulator with debug rom. it will give ypou memory
leaks in list with place when it was allocated

[EMAIL PROTECTED] wrote:
> I am new to PalmOS development. I am writing an application for PalmOS for
> 5.0 and above in c++. Now I got some memory leaks which has to be fixed. I
> tried to use PalmOS Garnet Simulator 5.4. It is saying some memory leaks are
> there but I want to exactly know where are the leaks comming form. Is there
> any tools to check memory leaks for PalmOS.
> 
> Thanks
> 

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


regarding mpeg play on palm handlhelds

2006-01-05 Thread chinmaya
Hi Developer,
I want to play a mpeg on my palm handheld using a mpeg player.
Is it possible for Palm versions? 
If possible then tell what r the possible way I have to follow and what's the 
minimum version I've to follow for it.
Thanks in advance.
Palm Developer

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Regarding PNG display....

2006-01-05 Thread chinmaya
Hi all,
Some developers suggested me about my problem but I couldn't do it .But I am 
really thankfull to them for their suggestion and  wish that they will help me 
in future.
I've already questioned before regarding this ,and as per suggestion I have 
done a lot but still I am waiting for result. May some mistake done by me.But I 
am not getting it.
 
So I am going in detail, so that some can help me exactlywhat I will follow 
...

Byte *dataSrc;
bytesRead = NetLibReceive(NetRefnum,socketRef,dataSrc,
   bytesRead,0,NULL,0,10 * SysTicksPerSecond(), &error);

Here the dataSrc is a buffer which is containing the PNG image in a 
compressed(may be )format and in byte order.
If compressed I need uncompress it and change it into a Image format, so that I 
can display it, but I don't know how to do it?
then I want to display on emulator.
As I am trying display on emulator directly, it is displaying some junk image 
on my emulator screen .
so please suggest what I will do?

Thanks in advance...


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: want to edit keyboard prc file to make it dvorak layout

2006-01-05 Thread Jeff Co
Okay, Using Palm OS Developer's Suite and a freeware/shareware hex editor, I 
edited KEYT_1000.bin and manually changed the characters to correspond to a 
dvorak binding. But I don't know how to pack it all together into a new prc 
file again. In PODS, how do I do so?

I have attached the dvorak-ized file with this message. In case Par can do it.
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

KEYT_1000.bin
Description: Binary data


used PODs to make changes in a prc file. Now how do i save it as a (modified) prc file?

2006-01-05 Thread Jeff Co
Hello,
I'm a beginner and no programmer. I've made some changes to a prc file in Palm 
OS Developer's Suite (PODS) and now I want to save my project as a prc file. 
How do I do that?

This is the steps I did:
1. Start PODS.
2. File/New/ Project.
3. Choose Simple/Project.
4. Give a project name. (Let's call it XYZ)
5. File/Import/Palm OS Resource File
6. In "From Resource", I browse to the prc file on my hard drive. Click Finish.
7. Make some changes.

8. *** now what do i do? 

What is this final step to package the project into a prc file again?
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


USB debugging on T|X

2006-01-05 Thread Doug Gordon
I was finally able to debug on my T|X and, even though this has probably been 
discussed before, I thought I'd summarize what I did.

First off, I was able to put the T|X into console mode with the shortcut-dot-2 
sequence. This was working all along, but I had forgotten that the only 
indicator is that blinking pixel in the lower right corner. So I was OK there.

The real problem was that my CW9 was not able to access the USB port. Guru Ben 
Combee wrote a KB article about putting the USBPort.dll file into a different 
location, but what he wrote was a bit confusing since he said to use a folder 
under "My Documents" that I'd never heard of. The more accurate solution is to 
say to move that file to your Palm Desktop root folder, wherever that happens 
to be. I have not changed my Palm folder since I started out with my IIIx, so 
it is still C:\Palm for me and I have always upgraded into that folder.

The other apparently important thing to do is to *move* the DLL there, not 
simply *copy* it. My USBPort.dll was in the Win/System32 folder, so I moved it 
to C:\Palm and rebooted to get everything cleaned up. So now CW9 and Hotsync 
are both working correctly, talking to my T|X (but not at the same time!).

Just thought I'd clear this up in case anyone else is having this type of 
problem. The other thing to note is that my need for this was due to the T|X 
itself behaving differently from the Simulator in regards to events posted by 
the 5-way control. The problem was easy to fix, but hard to see without the 
actual device debugging!

  -- Doug G
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: regarding mpeg play on palm handlhelds

2006-01-05 Thread Drew Haninger
Try:
http://tcpmp.corecodec.org/about

thanks
Drew

- Original Message - 
From: "chinmaya" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" 
Sent: Thursday, January 05, 2006 2:01 AM
Subject: regarding mpeg play on palm handlhelds


> Hi Developer,
> I want to play a mpeg on my palm handheld using a mpeg player.
> Is it possible for Palm versions?
> If possible then tell what r the possible way I have to follow and what's
the minimum version I've to follow for it.
> Thanks in advance.
> Palm Developer
>
> -- 
> For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/
>


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: regarding mpeg play on palm handlhelds

2006-01-05 Thread chinmaya
Hi Drew,
Thanx for Ur response. If you don't mind please tell me in detail.
Can you tell me whether it is supporting PalmOS or not?
If it is, then tell what is the minimum version it requires on PalmOS.
Thanks in advance...


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


How to encrypt database?

2006-01-05 Thread Michael Kang
Title: Message



Hi all,

 
I have a very 
general question. 
How to encrypt and 
decrypt database transparently? 
I guess I have to 
put a driver between applications and databases. Am I right?
I know crypto, but I 
am recruit on Palm.
Please give me some 
hint. 
 
Thanks in 
advance.
 
Michael
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/



Re: USB debugging on T|X

2006-01-05 Thread Jagat

Hey Doug,

I tried doing all the same for my Lifdrive, but in vain. Did you, by any 
chance got succeeded in doing it for lifedrive or does anybody have 
succeeded doing this for lifedrive for that matter ?


regards
- Original Message - 
From: "Doug Gordon" <[EMAIL PROTECTED]>

To: "Palm Developer Forum" 
Sent: Thursday, January 05, 2006 7:07 PM
Subject: USB debugging on T|X


I was finally able to debug on my T|X and, even though this has probably 
been discussed before, I thought I'd summarize what I did.


First off, I was able to put the T|X into console mode with the 
shortcut-dot-2 sequence. This was working all along, but I had forgotten 
that the only indicator is that blinking pixel in the lower right corner. 
So I was OK there.


The real problem was that my CW9 was not able to access the USB port. Guru 
Ben Combee wrote a KB article about putting the USBPort.dll file into a 
different location, but what he wrote was a bit confusing since he said to 
use a folder under "My Documents" that I'd never heard of. The more 
accurate solution is to say to move that file to your Palm Desktop root 
folder, wherever that happens to be. I have not changed my Palm folder 
since I started out with my IIIx, so it is still C:\Palm for me and I have 
always upgraded into that folder.


The other apparently important thing to do is to *move* the DLL there, not 
simply *copy* it. My USBPort.dll was in the Win/System32 folder, so I 
moved it to C:\Palm and rebooted to get everything cleaned up. So now CW9 
and Hotsync are both working correctly, talking to my T|X (but not at the 
same time!).


Just thought I'd clear this up in case anyone else is having this type of 
problem. The other thing to note is that my need for this was due to the 
T|X itself behaving differently from the Simulator in regards to events 
posted by the 5-way control. The problem was easy to fix, but hard to see 
without the actual device debugging!


 -- Doug G
--
For information on using the PalmSource Developer Forums, or to 
unsubscribe, please see http://www.palmos.com/dev/support/forums/





--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: want to edit keyboard prc file to make it dvorak layout

2006-01-05 Thread Aaron Ardiri
On 1/5/06, Jeff Co <[EMAIL PROTECTED]> wrote:
> Okay, Using Palm OS Developer's Suite and a freeware/shareware hex editor, I 
> edited KEYT_1000.bin and manually changed the characters to correspond to a 
> dvorak binding. But I don't know how to pack it all together into a new prc 
> file again. In PODS, how do I do so?
>
> I have attached the dvorak-ized file with this message. In case Par can do it.

check out the 'u' option of par. :) (hint - look for par man page)

you can effectively do something like:

  mv KEYT_1000.bin KEYT03e8.bin
  par u file.prc KEYT 1000

or, something like that - i dont remember the syntax. i've had to do
this a number
of times and 'par' as a utility can do all these magical things easily :P

--
// Aaron Ardiri

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: regarding mpeg play on palm handlhelds

2006-01-05 Thread Michal Seliga
why don't you go to check this page?
it supports palmos and needs palmos 5.0 to run on arm based device

chinmaya wrote:
> Hi Drew,
> Thanx for Ur response. If you don't mind please tell me in detail.
> Can you tell me whether it is supporting PalmOS or not?
> If it is, then tell what is the minimum version it requires on PalmOS.
> Thanks in advance...
> 
> 

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Sound

2006-01-05 Thread krzysztof . malinski
Hi!
I have some problem with Sampled sound. My application crashes when Im starting 
with SndStreamStart(). Maybe there is someone who can share working code with 
me ?

/Kind regards
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


How does one safely read, add, delete users from the palm user.dat?

2006-01-05 Thread Jerry Martinez








Thanks!

 

Jerry Martinez

Manager of Software Solutions


OEM Controls Inc.
10 Controls Drive
Shelton, CT
  06484

Work: 203-929-8431

Mobile:
203-954-7486
Fax: 203-929-3867
Email: [EMAIL PROTECTED]

 




-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/





RE: Sound

2006-01-05 Thread Chris Apers
Did you check your callback ?
Problem should be there.

-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de
[EMAIL PROTECTED]
Envoyé : jeudi 5 janvier 2006 17:09
À : Palm Developer Forum
Objet : Sound

Hi!
I have some problem with Sampled sound. My application crashes when Im
starting with SndStreamStart(). Maybe there is someone who can share working
code with me ?

/Kind regards

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


RE: Sound

2006-01-05 Thread krzysztof . malinski
Yep!
It's empty now. Before that I had tried to copy some raw data, to make some 
noise but it wasn't working :(
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: USB debugging on T|X

2006-01-05 Thread Ben Combee

At 09:55 AM 1/5/2006, you wrote:

Hey Doug,

I tried doing all the same for my Lifdrive, but in vain. Did you, by any 
chance got succeeded in doing it for lifedrive or does anybody have 
succeeded doing this for lifedrive for that matter ?


AFAIK, USB debugging on the LifeDrive doesn't work.  The LD uses a 
different chip to support USB 2.0 and I don't think the debug manager was 
hooked up correctly.



-- Ben Combee, Senior Software Engineer, Palm, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


nonblocking and netInternalErr

2006-01-05 Thread Troy Lokitz
I've seen this problem in the msg board before but never a solution.

I setup non-blocking and am trying to do a netlibreceive.  If i step through it 
in the pods debugger, it works well, but I i run it in the simulator or in my 
palm, i get netInternalErr.  I've tried playing with the netlibreceive timeout 
with no success.

Any Ideas?


do
{
bytesRead = NetLibReceive(netinfo->netlibrefnum, 
netinfo->socketrefnum,(void *)pBuffer, totalBytesToRead, 0,NULL, 
0,netinfo->timeout, pErr);

++timeoutCounter;
} while ((*pErr == netErrWouldBlock) && (timeoutCounter < netinfo->timeout*5));
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


grey out for controls in palm

2006-01-05 Thread babbu cathy
all,

I have a checkbox control in my palm application, need
to greyout the control when I select on that.
How to make it greyout(shouldnt hide) for controls in
palm?

Can anyone give me ideas in this.

cathy.



__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Regarding PNG display....

2006-01-05 Thread Erico Franco

chinmaya wrote:
Here the dataSrc is a buffer which is containing the PNG image in a 
compressed(may be )format and in byte order.

If compressed I need uncompress it and change it into a Image format, so that I 
can display it, but I don't know how to do it?
then I want to display on emulator.


As we told you before:

You would need to convert it to bmp format to display it on Palm as Palm 
don't know png format only bmp. But there is no public PNG->BMP 
converter for Palm.


As you do not has competence to create a PNG->BMP converter what you are 
trying to do is *not* *possible*.


So is not possible for you to display a .png buffer image on Palm screen 
on your application.


regards

Erico Franco

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Tungsten T5 ROM

2006-01-05 Thread Tinnus
You want to use a T5 ROM with the Emulator? I'm not even sure if you
can transfer the ROM to the PC using this prc, let alone the Emulator.
You certainly can't use the ROM with POSE though.2006/1/5, Andy Bell <[EMAIL PROTECTED]>:
Hi All,I am trying to download the ROM of a Tungsten T5 but it keeps crashingafter around 20% of the transfer.  I am using the Emulator on windowsand the Transfer.prc for the palm.Any ideas?  Is there somewhere I can download the ROM?
Thanks in advanceAndy--For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: How can we create a custom control like ActiveX control in windows?

2006-01-05 Thread Tinnus
I don't think this is possible at all... I can be wrong though.2006/1/5, Mehul Patel <[EMAIL PROTECTED]>:
Hi,  How
do we create a custom control in Palm environment (just like an ActiveX
control in windows envronment). For example, Custom textbox control
with additional features...  Which we can use in other application just like plug the Custom control in any application and start using it..Your time and help is much appreciated.Best regards, Chirag
--For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Tungsten T5 ROM

2006-01-05 Thread Nikolai Filipov

Hello, Andy!
You can get the Tungsten T5 Simulator, which has the T5 ROM included 
with it from here

http://pluggedin.palm.com/regac/pluggedin/index.jsp

Nikolai Filipov
Hands High

At 10:54 05.1.2006, you wrote:

Hi All,

I am trying to download the ROM of a Tungsten T5 but it keeps crashing
after around 20% of the transfer.  I am using the Emulator on windows
and the Transfer.prc for the palm.
Any ideas?  Is there somewhere I can download the ROM?

Thanks in advance
Andy


--
For information on using the PalmSource Developer Forums, or to 
unsubscribe, please see http://www.palmos.com/dev/support/forums/




--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: grey out for controls in palm

2006-01-05 Thread Hal Mueller

The user interface guidelines specifically say not to do this.

H

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


How do I read a Text file in Palm OS 5.4 ?

2006-01-05 Thread waqaryar
I am new to Palm programming, how can I place a Text file in the Palm and read 
it through my application ? I am trying to make an applicaiton which could read 
simple documents ( text files) on the palm. 


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Palm Dev Books

2006-01-05 Thread Borszczuk


Hi,

I just browsed the amazon.com and started to wonder if there's
any Palm development related book that is not ancient?

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Has anybody parsed PalmResize to PocketStudio libs yet?

2006-01-05 Thread Clive Walden

> I'm developing Palm apps in PocketStudio. PocketStudio has support for DIA 
> but is a bit limited.
> Therefore I would like to use the open source library called PalmResize 
> (http://sourceforge.net/projects/palmresize). Has anybody already parsed the 
> library to .pas 
> libraries?

Looks like the answer is no.

If you have to do it yourself, there are automated utilities out there that 
will do it for you.

You may have to hand fix the last 10% or so.

You should find one (or a reference to it) here: www.drbob42.com

Clive
Clive Walden
Walden Consulting
Phone: 760-632-5856
Web site: www.clivewalden.com
 


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: PODS and PalmOne includes and examples - problem with setting it all up

2006-01-05 Thread Borszczuk

Borszczuk wrote:

Hello,

I got, probably silly but still, problem with PODS. I just fetched
and installed latest PODS (1.2) on another machine. Works fine,
my older stuff compiles. Next, I palmone includes (sdk5r4) and
wanted to compile some of the examples from pluggedin (i.e. Camera),
but I failed somehow. Just adding plain:

#include <68K/Hs.h>


And answering myself: It seems the SDK for treo is somewhat broken (anyone
could comment on this?). The Common\Libraries\PmKeyLib\PmKeyLibCommon.h
contains #include  while it shall be rather
#include  unless you want to define
extra include path. Now examples from pluggedin compile.

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Palm Dev Books

2006-01-05 Thread Jay Ts
Borszczuk wrote:
> I just browsed the amazon.com and started to wonder if there's
> any Palm development related book that is not ancient?

Take a look at this one:

http://www.amazon.com/gp/product/076457373X/
Professional Palm OS Programming.pdf
Lonnon R. Foster, Glenn Bachmann
WROX Press

It's less than a year old, and as far as I know,
the most up-to-date book on Palm OS Programming
outside of the official documentation.

The book covers both Garnet and Cobalt (not that
you want to know anything about Cobalt) and also
covers CodeWarrior and PODS.

Jay Ts

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Palm Dev Books

2006-01-05 Thread Borszczuk

Jay Ts wrote:


I just browsed the amazon.com and started to wonder if there's
any Palm development related book that is not ancient?

>

http://www.amazon.com/gp/product/076457373X/
Professional Palm OS Programming.pdf
Lonnon R. Foster, Glenn Bachmann
WROX Press


Thank, I got this one - just forgot about it. And yes, except the (useless) 
Cobalt stuff that blows the whole book up, it's quite ok reading but I find
it a for-beginners rather than advanced (and the example Librarian app leaks ;) 
What I also forgot to mention is that I look for something  more advanced than 
"My helloworld.c". I found no up-to-date book covering i.e. palmos 5 color 
graphics, telephony etc - stuff that exists for years, but all we have is 
reference manual, some example codes from pluggedin (of which some simply crash 
my treo) and that's it.


--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: How do I read a Text file in Palm OS 5.4 ?

2006-01-05 Thread Jim Cooper



I am new to Palm programming, how can I place a Text file in the Palm


There is no such thing on Palm devices. Read up on databases in the docs.


Cheers,
Jim Cooper

__

Jim Cooper[EMAIL PROTECTED]
  Skype : jim.cooper
Tabdee Ltdhttp://www.tabdee.ltd.uk

TurboSync - Connecting Delphi to your Palm
__

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: grey out for controls in palm

2006-01-05 Thread Jim Cooper



The user interface guidelines specifically say not to do this.


And the API does not support it either :-)


Cheers,
Jim Cooper

__

Jim Cooper[EMAIL PROTECTED]
  Skype : jim.cooper
Tabdee Ltdhttp://www.tabdee.ltd.uk

TurboSync - Connecting Delphi to your Palm
__

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: grey out for controls in palm

2006-01-05 Thread Donald C. Kirker
Hello,

You could probably create a custom function that will draw over the checkbox
with a grey line and then handle all screen taps to the checkbox (in the
penDownEvent) by returning true before the system has a chance to redraw an
updated checkbox over it.

-Donald

"babbu cathy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> all,
>
> I have a checkbox control in my palm application, need
> to greyout the control when I select on that.
> How to make it greyout(shouldnt hide) for controls in
> palm?
>
> Can anyone give me ideas in this.
>
> cathy.
>
>
>
> __
> Yahoo! DSL - Something to write home about.
> Just $16.99/mo. or less.
> dsl.yahoo.com
>
>



-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


RE: grey out for controls in palm

2006-01-05 Thread Jim Morris
Being a free spirit, try UIColorGetTableEntryRGB and UIColorSetTableEntryRGB
in a post event handler.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Cooper
Sent: Thursday, January 05, 2006 4:18 PM
To: Palm Developer Forum
Subject: Re: grey out for controls in palm


> The user interface guidelines specifically say not to do this.

And the API does not support it either :-)


Cheers,
Jim Cooper

__

Jim Cooper[EMAIL PROTECTED]
   Skype : jim.cooper
Tabdee Ltdhttp://www.tabdee.ltd.uk

TurboSync - Connecting Delphi to your Palm
__

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Regarding PNG display....

2006-01-05 Thread Donald C. Kirker
You can either use the code from PiNGer of the ZBoxZ project or port libpng.
Beware, this code is open source, so using it in your application will
require your application to be open source, unless you are willing to create
a png library. There are a few other programs that use this png code. Use
Google to find them, one is piv (Palm Image Viewer, a personal project by
some one) and the other is gps4palm (by the same person that does piv).

-Donald

"chinmaya" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
> Some developers suggested me about my problem but I couldn't do it .But I
am really thankfull to them for their suggestion and  wish that they will
help me in future.
> I've already questioned before regarding this ,and as per suggestion I
have done a lot but still I am waiting for result. May some mistake done by
me.But I am not getting it.
>
> So I am going in detail, so that some can help me exactlywhat I will
follow ...
>
> Byte *dataSrc;
> bytesRead = NetLibReceive(NetRefnum,socketRef,dataSrc,
>bytesRead,0,NULL,0,10 * SysTicksPerSecond(), &error);
>
> Here the dataSrc is a buffer which is containing the PNG image in a
compressed(may be )format and in byte order.
> If compressed I need uncompress it and change it into a Image format, so
that I can display it, but I don't know how to do it?
> then I want to display on emulator.
> As I am trying display on emulator directly, it is displaying some junk
image on my emulator screen .
> so please suggest what I will do?
>
> Thanks in advance...
>
>



-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Memory error

2006-01-05 Thread Donald C. Kirker
You are trying to write to an invalid memory pointer.

For instance, doing something like the following:

Char *myText = NULL;

StrCopy(myText, "This is text going to a NULL pointer");

You would have to allocate the memory with MemPtrNew (or MemGluePtrNew, or
even MemHandleNew) before using it.

This can also be caused my passing NULL pointers to system functions.

-Donald

<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> the project that only copy the data of Ram to card,on the zodic, runs
successfully,but on the NX73,there is a error about
"MemoryMgr.c,Line:3649,Nil ptr",how did the error occure?
>



-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Regarding PNG display....

2006-01-05 Thread Billy

Donald C. Kirker wrote:

You can either use the code from PiNGer of the ZBoxZ project or port libpng.
Beware, this code is open source, so using it in your application will
require your application to be open source, unless you are willing to create
a png library.


Dear future archive-reading newbie developer,
To be clear, this is NOT a licensing requirement of "open source"
software in general.  BSD-style licenses are open source, and do
not have this restriction.  ZBoxZ is licensed under GNU General
Public License, a form of "open source" licensing which DOES have
this so-called "viral" clause.

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Palm programmers please help.

2006-01-05 Thread valpetr
Here is a situation: 
I need to decide on platform (tool, IDE) for Palm Pilot application development 
(currently PalmOS version 5.3).
The tasks:
1 – Application supposed to work on Palm based smart phone Treo 560.
2 – SOAP connectivity to .NET Web Service.
3 – Users have to be able to browse pictures.
4 – Application should not use build-in web browser.
5 – Application has to be able to be integrated with Mapopolis to determine 
position on the map and driving direction.

I’m currently considering Metrowerks Code Warrior, J2ME and Palm OS Developer 
Suite.
J2ME is my favorite so far but I never used it before and not sure how good 
support (documentation) for this tool is.
Any other ideas are welcome. 

Please explain briefly main pros and cons of the tool you think is best 
candidate for the job.

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Regarding PNG display....

2006-01-05 Thread Borszczuk

Donald C. Kirker wrote:


Beware, this code is open source, so using it in your application will
require your application to be open source, unless you are willing to create
a png library. There are a few other programs that use this png code. Use


Please do not spread such false gossips. The term "Open Source" refers to 
software which both ensures the availability of source code and meets a specific 
set of criteria related to distribution of that software. You can learn more 
here: http://www.opensource.org/docs/definition.php Using open source components 
does not automatically means your app gets "cursed" and automatically converted 
to open source. What is important, is the license. Mind the difference and do 
your homework by learning how many various licenses open source can utilise:


http://www.opensource.org/licenses/ or 
http://www.gnu.org/licenses/license-list.html
http://sourceforge.net/docman/display_doc.php?docid=778&group_id=1

Also, what you should also understand and differce, is using shared library
in your app vs. linking statically the library with your app. This may be a 
slight difference for the app from the code point of view, but it do matter

as for license (hence i.e. GPL and LGPL). So to clarify the thing, as there's
not the place for such debate - you shall always read the license of the 
software (opensource/closedsource/free/commercial), especially if you want

to use it in your applocation or get "inspired by" its source code.

As for libpng - you really should have spent 3 minutes reading its license
prior sending your former post: 
http://www.libpng.org/pub/png/src/libpng-LICENSE.txt

Regards,

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Palm programmers please help.

2006-01-05 Thread Borszczuk

[EMAIL PROTECTED] wrote:


I’m currently considering Metrowerks Code Warrior, J2ME and Palm OS Developer 
Suite.
J2ME is my favorite so far but I never used it before and not sure how good 
support (documentation) for this tool is.
Any other ideas are welcome. 


Pardon me, but how can you tell it's your favourite if you admit you don't know 
it even? And in fact J2ME is not a tool, but rather the environment, so if you 
shall look for IDE with J2ME support like Netbeans IDE or other



Please explain briefly main pros and cons of the tool you think is best 
candidate for the job.


Pardon me (again), but what about hiring the specialist for this job? There're 
lot of guys here and some would gladly serve you quickly, with required skills 
and knowledge.


--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Palm programmers please help.

2006-01-05 Thread valpetr
The fact that I never used J2ME does not mean that I never developed Palm 
application or never used Java for development (windows apps, web apps).
The reason why J2ME is #1 in my list because it is tool (well, environment) 
that allows to use object libraries VS CodeWarrior that does not (the attempt 
to include POL into the version 9.3 is miserably failed) 

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: The resource file "XYZMain.rsrc" appears to be corrupt

2006-01-05 Thread Logan Shaw

Mike wrote:

more Palm Constructor 1.9 horrors!  the palm resource file for my app is
corrupt (AGAIN).  it opens with no resources and won't work until i restore
from a backup.  see how it looks when i open the file in attached GIF.

my wish is to know why this is happening and how to prevent it.

i hear that the constructor doesn't work well when the file contains more
than about 2700 resources.  mine has about 1000 (from the resource header
file) and is increasingly regularly going corrupt as shown in attached GIF.

   :
   :

what's the best way to make resources today for use with Code Warrior 9?

- had tried pilrc but it seems as frail as palm constructor.  maybe just bad
luck?  as i speak pilrc has about 30 access violation errors stacked up on


If I were doing a Palm project and there was no need to be compatible
with others developers' tools (or philosophies), I would lean towards
just using pilrc directly and editing the pilrc input file by hand
with a text editor.  Here's why:

1)  It takes a text file as input.  I'm pretty sure there's no reason
for it to open the file for write access.  Therefore, it's VERY
unlikely to trash your carefully-built resource input file.

2)  It's open source, so if it does crash on something critical, you
stand a chance of being able to fix it, rather than just wringing
your hands.

3)  Although having no visual editor might seem less productive, it's
a heck of a lot simpler, and if you're good with a text editor,
it might be just as productive in many situations, especially for
someone who (like me) has never truly gotten the hang of using
a mouse[1].

4)  Somewhat incidentally, text files are more compatible with many
source code control systems than one gigantic binary file is.

Of course, that's just my opinion.  By the way, when I've used pilrc
on Mac OS X (compiled from source), I've never seen it crash.  I
wonder if it's something about the Windows build or if it's an older
version (than 3.2) or something like that.  And if so, is it safe to
replace the CodeWarrior pilrc with your own?  I would think so, but
it's something to be clear on before you proceed.  :-)

  - Logan

[1] One of the things I've always loved about the Palm (other than
the streamlined, no-BS GUI) is that it has a pen instead of a
mouse.  It's hard to express how much better an input the pen
is.  Being able to indicate X and Y directly, rather than delta-X
and delta-Y as with a mouse, is infinitely superior because the
input you must give the machine to achieve your objective is not
a function of the pointer's state, which means you could literally
do it with your eyes closed if you wanted to.

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: How do I read a Text file in Palm OS 5.4 ?

2006-01-05 Thread Logan Shaw

[EMAIL PROTECTED] wrote:

I am new to Palm programming, how can I place a Text file in the Palm and
read it through my application ? I am trying to make an applicaiton which
could read simple documents ( text files) on the palm.


As someone else said, text files aren't really in the Palm idiom.  If
the goal is to create something that works with text files that exist
independently of the Palm, then it's worth pursuing.  But if the text
file is only to exist on the Palm, it would be better to use database
records instead of a text file.

Anyway, if you determine that a text file does make sense, then you have
a choice.  In the early days, there were no SD Cards, and the only way
to have a file was to encapsulate it in a database.  This is called a
FileStream.  To the user, it looks like any other PDB, but it has a
structure where you can use FileOpen(), FileRead(), etc. to read and
write it on the Palm.  This method will be compatible with all but the
very oldest Palm devices.  (I think File Streams were introduced in
version 2.0 or something.)

The other method, now that there are SD Cards, is to assume that the
user does in fact actually own an SD Card, and force them to put the
file on that card.  Then you can use VFSFileOpen(), VFSFileRead(),
etc. to read and write it.  VFS files have names a bit more like
what you're used to, in that they're in a hierarchical namespace
and all that.  (File Streams are in a flat namespace, because they
are really just databases.)

The thing to be aware of with all this is that there is no built-in
set of buffered file I/O routines (like stdio) on the Palm.  That means
that if you want routines to, say, read a line from the text file, you
will have to supply them[1].  When I added a feature to one of my apps
to spit out a text file (HTML, actually) summarizing data the user had
entered into the application, I basically ended up writing my own
equivalents of fopen(), fclose(), fputs(), fputc(), putw(), fflush(),
etc.  It worked fine and was, surprisingly, not all that painful, but
it did take time...

  - Logan

[1]  There is such a thing as a Standard IO Application on the
 Palm, but changes the entire structure of the app as I
 understand it, so you can't just add this on to your
 existing app if you need to add the ability to read and
 write text files.

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Too many clicks

2006-01-05 Thread Ray Heindl
One form in my app has a button that calls UIPickColor.  This works 
fine, except that when I push the button I hear two clicks -- one from 
pushing the button, and one from the UIPickColor dialog opening.  This 
sounds really odd.  Is there any way to get rid of one or the other of 
the clicks?

-- 
Ray Heindl

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: How to encrypt database?

2006-01-05 Thread Michael Yam

Michael Kang wrote:

Hi all,
 
I have a very general question.

How to encrypt and decrypt database transparently?
I guess I have to put a driver between applications and databases. Am I 
right?

I know crypto, but I am recruit on Palm.
Please give me some hint.
 
Thanks in advance.
 
Michael


Take a look at DDJ's article: "Security and Palm OS 5.x" (subscription 
required):

 http://www.ddj.com/documents/s=9175/ddj0406h/

Also, here's a free third party aes encryption library for the Palm OS:

 http://www.copera.com/AESLib/index.html

Good luck,

Michael Yam
Y Technology
http://www.ytechnology.com

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re[2]: How do I read a Text file in Palm OS 5.4 ?

2006-01-05 Thread Lance Drake
As someone else said, text files aren't really in the Palm idiom. <...SNIP...> it would be better to use databaserecords instead of a text file.Hi Logan,Am I misunderstanding the situation or will the whole question of Palm OS limitations become moot?   Specifically I refer to this news from eWeek:  Doubts Raised on Palm OS Future:    <...SNIP...>  [bottom line:]     PalmSource and Access officials insist that there is a future for the Palm OS and that future is Linux; PalmSource added a fast-boot Linux kernel to its technology portfolio when the company acquired Bermuda-based mobile software maker China MobileSoft Ltd. last February.  "The Linux version is coming along great," said Kelley. "It's a superset of 6.1. We are proceeding with our plan, which is to deliver it to our customers next year."If I may ask - what's your take on the future of Palm?  Thanks,Lance Drake
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/


Re: Regarding PNG display....

2006-01-05 Thread Donald C. Kirker
Well excuse my ignorance. Since working on an open source project this was
the impression I got (even when talking to somebody from GNU or who ever
deals with the GPL). I figured libpng was under the GPL and was too busy to
look it up. Plus, I was refering to PiNGer, which is part of ZBoxZ. When i
said open source I meant GPL.

I apologize if I created any confusion.

"Borszczuk" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Donald C. Kirker wrote:
>
> > Beware, this code is open source, so using it in your application will
> > require your application to be open source, unless you are willing to
create
> > a png library. There are a few other programs that use this png code.
Use
>
> Please do not spread such false gossips. The term "Open Source" refers to
> software which both ensures the availability of source code and meets a
specific
> set of criteria related to distribution of that software. You can learn
more
> here: http://www.opensource.org/docs/definition.php Using open source
components
> does not automatically means your app gets "cursed" and automatically
converted
> to open source. What is important, is the license. Mind the difference and
do
> your homework by learning how many various licenses open source can
utilise:
>
> http://www.opensource.org/licenses/ or
http://www.gnu.org/licenses/license-list.html
> http://sourceforge.net/docman/display_doc.php?docid=778&group_id=1
>
> Also, what you should also understand and differce, is using shared
library
> in your app vs. linking statically the library with your app. This may be
a
> slight difference for the app from the code point of view, but it do
matter
> as for license (hence i.e. GPL and LGPL). So to clarify the thing, as
there's
> not the place for such debate - you shall always read the license of the
> software (opensource/closedsource/free/commercial), especially if you want
> to use it in your applocation or get "inspired by" its source code.
>
> As for libpng - you really should have spent 3 minutes reading its license
> prior sending your former post:
http://www.libpng.org/pub/png/src/libpng-LICENSE.txt
>
> Regards,
>

"Billy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Donald C. Kirker wrote:
> > You can either use the code from PiNGer of the ZBoxZ project or port
libpng.
> > Beware, this code is open source, so using it in your application will
> > require your application to be open source, unless you are willing to
create
> > a png library.
>
> Dear future archive-reading newbie developer,
>  To be clear, this is NOT a licensing requirement of "open source"
> software in general.  BSD-style licenses are open source, and do
> not have this restriction.  ZBoxZ is licensed under GNU General
> Public License, a form of "open source" licensing which DOES have
> this so-called "viral" clause.
>



-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Memory error

2006-01-05 Thread Donald C. Kirker
My guess would be they way the Zodiac handles NULL pointers in a system
function you call as opposed to the way the Clie handles it.

"Donald C. Kirker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> You are trying to write to an invalid memory pointer.
>
> For instance, doing something like the following:
>
> Char *myText = NULL;
>
> StrCopy(myText, "This is text going to a NULL pointer");
>
> You would have to allocate the memory with MemPtrNew (or MemGluePtrNew, or
> even MemHandleNew) before using it.
>
> This can also be caused my passing NULL pointers to system functions.
>
> -Donald
>
> <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> > the project that only copy the data of Ram to card,on the zodic, runs
> successfully,but on the NX73,there is a error about
> "MemoryMgr.c,Line:3649,Nil ptr",how did the error occure?
> >
>
>
>



-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Regarding PNG display....

2006-01-05 Thread Donald C. Kirker

"Borszczuk" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Please do not spread such false gossips.

And, I was not trying to spread 'false gossips.'



-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: How do I read a Text file in Palm OS 5.4 ?

2006-01-05 Thread Shankari G
hi ,I think this piece of code will help you to read and write a file in palm 
 
int readdata(unsigned char *PalmproductUnqID){   FileHand securityfile;   Err errp;   Int32 count = 0;   Int32 total = 0;   Int32 fileSizeP;   SFdata dummydata;   FILE * secfile;   char buff[40];
   UInt8 *bufferP;
   securityfile = FileOpen(0,SECFILE,0,0,fileModeReadOnly,&errp);   if(errp)  Display(errp);   else   {     #if IFDEBUG        FrmCustomAlert(SecurityAlert, "fopen for read success","?", "cc");
    #endif    }          FileTell (securityfile,&fileSizeP,&errp);//give you the size of the file   MemSet(&dummydata,0,sizeof(SFdata));   #if IFDEBUG      StrPrintF(buff,"filesize- %ld",fileSizeP);
   FrmCustomAlert(SecurityAlert, buff,"?", "cc");   #endif
   count = FileRead(securityfile,&dummydata,1,sizeof(SFdata),&errp); //read the content   #if IFDEBUG   StrPrintF(buff,"read m-%c%c%c%c",dummydata.productuniqueID[0],dummydata.productuniqueID
[1],dummydata.productuniqueID[2],dummydata.productuniqueID[3]);   FrmCustomAlert(SecurityAlert,buff ,"?", "cc");   #endif      if(errp)   {     #if IFDEBUG   FrmCustomAlert(SecurityAlert, "error in read","?", "cc");
 StrPrintF(buff,"error- %d totol - %d",errp,total); FrmCustomAlert(SecurityAlert, buff,"?", "cc");  #endif    Display(errp);   }   else   {  #if IFDEBUG  
 FrmCustomAlert(SecurityAlert, "fread success","?", "cc");     StrPrintF(buff,"count- %ld",count); FrmCustomAlert(SecurityAlert, buff,"?", "cc"); 
 #endif   }
 memcpy(PalmproductUnqID,&dummydata.productuniqueID,sizeof(dummydata.productuniqueID));
   errp = FileClose(securityfile);   if(errp)   { #if IFDEBUG   FrmCustomAlert(SecurityAlert, "error in FileClose","?", "cc");    #endif Display(errp);
    } 
return 1;}
int create_file(SFdata sfdata)//SFcontents = 64 bytes{   FileHand securityfile;   Err errp;   Int32 count = 0;   char buff[40];  securityfile = FileOpen(0,SECFILE,0,0,fileModeReadWrite,&errp);
   count = FileWrite(securityfile,&sfdata,1,sizeof(SFdata),&errp);       if(errp)  { #if IFDEBUG FrmCustomAlert(SecurityAlert, "error in write","?", "cc");
 #endif Display(errp);   }   
       errp = FileClose(securityfile);   if(errp)   {  #if IFDEBUG FrmCustomAlert(SecurityAlert, "error in FileClose","?", "cc"); #endif Display(errp);
     }      #if IFDEBUG   StrPrintF(buff,"create_securityfile success- %ld",count);   FrmCustomAlert(SecurityAlert, buff,"?", "cc");   #endif
return 1;}
with cheers ,
shankari. 
On 1/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

I am new to Palm programming, how can I place a Text file in the Palm and read it through my application ? I am trying to make an applicaiton which could read simple documents ( text files) on the palm.
--For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/


-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

base64 encoding

2006-01-05 Thread she
hello everyone.

i am currently doing an application to capture an image then send it to a 
server via gprs. i am  using treo 650 on my development.

hiwever on the sending part, i have to encode the data using base64 encoding. 
for security reasons and because i have to insert this image into a db.

please, anyone please help. 

thanks a lot!
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: USB debugging on T|X

2006-01-05 Thread Florent Pillet

On 5 janv. 06, at 17:37, Ben Combee wrote:

AFAIK, USB debugging on the LifeDrive doesn't work.  The LD uses a  
different chip to support USB 2.0 and I don't think the debug  
manager was hooked up correctly.


Nothing was hooked up correctly on the LifeDrive, actually. There is  
a USB control code that Palm devices support (or don't respond to) to  
get information about the USB pipes to use to talk to it. On the LD,  
some engineer probably copy-pasted the code to respond to this  
request, and the answer is incorrect (it tells you to use the second  
pair of pipes, whereas you need to use the first one).


Florent

--
Florent Pillet  http://www.florentpillet.com
Freelance software developer/consultant - Palm OS & Mac OS X
Skype callto://florent.pillet



--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: base64 encoding

2006-01-05 Thread Logan Shaw

she wrote:

i am currently doing an application to capture an image then send it to a
server via gprs. i am  using treo 650 on my development.

hiwever on the sending part, i have to encode the data using base64 encoding.
for security reasons and because i have to insert this image into a db.


Do you have to put it in base64 encoding or (more commonly) do you need
to create a MIME-formatted message?

Either way, here is the relevant documentation on creating a MIME-formatted
message (which can use base64 but can also use other transfer-encodings):

http://www.ietf.org/rfc/rfc2045.txt

Section 6.8 (which is on p. 24) is the part about base64.

If all you have to do is write some data in base64 format, it probably
won't be that hard.  You just need to do some bit shifting and define a
lookup table that specifies which characters represent each of the 64
possible values.  The document above spells it out in full detail.

  - Logan

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/