It sounds like your problems are just that your OS 3.1 project
references variable types that are no longer defined in the 3.5 SDK.
For example, all the *Ptr (like CharPtr, etc...) types are no longer
defined.  Neither is Word, DWord, etc...  You can either include
PalmCompatibility.h, which is simply a set of defines that map the older
types to the newer types (Word -> UInt16, etc...) or you can go through
your project and change the types to the 3.5 set.  Either way, look in
PalmCompatibility.h for what you'd need to change.

It's been a while since I've done SDK v3.1 development, but if I
remember correctly, MemHandle isn't defined.  Use VoidHand instead (?).
Just look in the headers.  Perhaps you're using 3.5 documentation with
the 3.1 headers?

Your programs will work fine on older devices (regardless of which SDK
you develop with) as long as you don't call (or check the ROM version
before you do) functions that weren't defined for that OS.


-----Original Message-----
From: Cynon Mac an Choile [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 1:40 PM
To: Palm Developer Forum
Subject: MemHandle and Creating records


I ran into a little problem with databases.  All of the docs that I
have talk about MemHandle as a valid variable type.  But, I am
programming for PalmOS ver 3.1.  If I change that and start programming
for the OS v 3.5, (which, apparently is the only OS that the books I
have covers) will these programs work on older versions?

For instance, the command DmNewRecord requires a Memhandle var. 
Otherwise you get an incompatable pointer type.

Plus, I started this project using Falch's IDE.  Which works pretty
well, but now everything includes <Pilot.h> instead of <PalmOS.h>. 
Simply changing the project settings to version 3.5 doens't work nor
does changing the settings and changing <Pilot.h> to <PalmOS.h>.

So, looks like I  have to redo the entire project for version 3.5....

Any suggestions?  

=====
-Cynon-

"A contract without a sword is only a piece of paper"

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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

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

Reply via email to