You just created a NULL pointer and then tried to write to it. You'll need to do something like

dateTimeP = (DateTimePtr) MemPtrNew(TheSizeOfDateTimeP);

Where "TheSize..." is the size, in bytes, of a DateTimePtr.

Adam

On Jan 3, 2005, at 6:02 AM, Ashutosh Kumar wrote:

DateTimePtr dateTimeP=NULL;
dateTimeP->month=4;dateTimeP->day=5; dateTimeP->year=1900;


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

Reply via email to