At 03:19 AM 9/11/2003, Philippe Fischer wrote:
Good morning palm dev forum

I'm working on the PalmOS SyncML client from the SyncML reference
toolkit available at http://sourceforge.net/projects/syncml-ctoolkit/.
Did  anyone have an idea on how to migrate a PalmOS 3.0 CodeWarrior
project to PalmOS 5?

I just looked at the code, and this is a LOT of work.


A few quick steps:

1) Fix the access paths. "{Compiler}Palm OS 3.1 Support" should be converted to "{Compiler}Palm OS Support", and "{Compiler}MSL" should be "{Compiler}CW for Palm OS Support".

2) Fix the prefix file. Change that setting in the C/C++ Language panel to "PalmOS_Headers".

3) Fix the source files

#include <Pilot.h>

to read

    #include <PalmOS.h>
    #include <PalmCompatibility.h>

This will pull in the current Palm OS headers and also the compatibility header that defines a lot of types from the old SDK.

4) Fix the code. Even with all this, you will have issues with

   - access to internal structure members
   - changed function prototypes

The first can often be addressed by using code from the Palm OS glue library. The second can usually be fixed by casting parameters or changing the types of your variables.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to