>However, the project is created on SDK v3.1. If it is
>the version problem, how can i convert my project to
>SDK v3.5? (Do u think this is the problem? Or is it
>something else?)
3.1 projects didn't use PalmOS.h. It didn't exist. Without knowing
your full project setup, I can't specifically pinpoint all your
errors, but I suspect the fact that it's a 3.1 project is the
problem. I would recommend that you switch the project to the 3.5
SDK, including changing the various data types to the 3.5 data types.
In the long run, it will make your life easier.
>if this is also a problem, is there a way to convert
>the code w/o doing it manually? Or will converting the
>project take care of all this?
There is information in the 3.5 SDK or in the Knowledge Base about
converting projects to 3.5. You can start by making a new 3.5
project, adding the 3.1 project source files, and including
"PalmCompatibility.h" (I _believe_ that's the correct name) in each
of them. This file maps the old data types to the new ones. Just
doing this should give you correct access to the OffsetOf macro.
Then, as soon as you can, convert the old data types to the new ones,
manually, using global find and replace. There's no easy way to do
that.
Regards,
Steve Mann
--
-------------------------------------------
Creative Digital Publishing Inc.
1315 Palm Street, San Luis Obispo, CA 93401-3117
-------------------------------------------
805.784.9461 805.784.9462 (fax)
[EMAIL PROTECTED] http://www.cdpubs.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/