how do you initialize your struct?
should be something like this:
// definition of struct
typedef struct {
Int32 iInteger;
char *szString1;
char *szString2;
} MyStruct;
void MyFunction(){
MyStruct *test = MemPtrNew(sizeof(MyStruct));
test->iInteger = 123;
test->szString1 = MemPtrNew(255); //length of string
test->szString2 = MemPtrNew(255); //length of string
StrCopy(test->szString1, "Hello!");
StrCopy(test->szString2, "World!");
}
Markus Dresch (www.palmside.com)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/