Try defining a ponter to your structure ( structPtr )
Then try
VoidPtr handle;
structPtr x;
x = MemHandleLock(handle);
It works for me.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 1:26 PM
To: Palm Developer Forum
Subject: Records not made by Britney Spears
If I have the following line of code it compiles but it gives us a NULL
memory error when running.
newRecordPtr=(OurStruct*)MemHandleLock(myRecordHandle);
The book I am reading is called " The Palm Programming -The Developer's
Guide" by: Neil Rhodes and Julie McKeehan and it says to use
newRecordPtr=MemHandleLock(myRecordHandle);
but it won't compile. Any suggestions? We are using this to try and make a
new record in a database.
--
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/