A code resource is almost identical to a "real" application, the only
significant
differences are that it does not have the usual startup code that tells the OS
to
"jump to main" or PilotMain in this case.  This means that if you are using
CodeWarrior
do not try to link in StartUpCode.lib
 You can write the code in whatever editor you like, but you still need a
compiler.
CodeWarrior lite may have all the options necessary, I have never tried it,
I am reasonable sure that GNU's  PRC-Tools have the functionality required.

Important points to remember:
The program type must be 'sdrv' not 'appl'
The resource ID must be 0
There is no "PilotMain" function, it is replaced by DrvEntryPoint. For
CodeWarrior see
Project settings, Target, 68ktarget, PalmOs Code Resource, Entry Point

Hope this is helpful,

Good Luck,
Ron Mercer
Certicom Inc.

Marku wrote

>Palm operating system development documentation says: "A serial driver

>(sdrv) is a code resource (ID = 0) that is independently compiled and

>installed on a Palm device."

>I know that buttons, pull down menus etc. are recourcies and their format
>is quite clear but what kind of format does "code recource" have? How
>should I do it? Is there some kind of tool for writing them or should I use
>Notepad or similar? Is it possible to use Code Warrior Lite and Constructor?

>Markku





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to