What is wrong with the code bellow ?
---definitios.h------- X ----------------------------
typedef struct {
Char * formName;
} myFormStruct;
typedef myFormStruct *myFormStructPtr;
---main.c------------- X ----------------------------
void myFunction()
{
myFormStructPtr myform;
Char *buffer;
myform = (myFormStructPtr) MemPtrNew(sizeof(myFormStruct ));
buffer = "FormNumberOne";
StrCopy(myform->formName, buffer);
...
...
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/