How do I navigate to different forms from the main one provided as part of the
simple test application that is built as a sample when you create a new project?
Apart from the test button I have put more buttons on the main form & these are
to navigate to other forms(that I have created).
I am using the switch case provided in the MainFormHandleEvent() method for
this purpose. But Why do I get an error when I do the following? samplebtn is a
button I have put on the main page and sampleform is where the
FrmGotoForm(sampleform)should take me to!
Help!
Following is the piece of code:
case samplebtn:
{
ExampleStructType *inputData = (ExampleStructType *)MemPtrNew
sizeof(ExampleStructType));
if (inputData)
{
inputData->number1 = 2;
inputData->number2 = 5;
result = PceNativeResourceCall('ARMC', 0x1000,
"MgdPalm.dll\0PNOMain", inputData);
FrmGotoForm(sampleform);
MemPtrFree(inputData);
// TODO: display the result in a custom alert
}
handled = true;
}
break;
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/