From: "Jon Zaring" <[EMAIL PROTECTED]>
> frmP = FrmInitForm (AboutForm);
> FrmSetActiveForm(frmP);
> CtlSetValue((ControlType *)GetObjectPtr(AboutTestCheckbox),0);
> FrmDoDialog (frmP);
> Int16 iTemp = CtlGetValue((ControlType *)GetObjectPtr(AboutTestCheckbox));
> // The following line is erroring out on me . . . looks like the stack is
clobbered
> CtlSetValue((ControlType *)GetObjectPtr(AboutTestCheckbox),0);
> FrmDoDialog (frmP); // Display the About Box.
> FrmDeleteForm (frmP);
What environment are you using? CodeWarrior won't even compile this. It
doesn't like the Int16 declaration in the middle of the switch inside of
MainFormDoCommand, complaining about "expression syntax error". Perhaps
your compiler doesn't like it either, but doesn't tell you.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/