Im now using palmos 3.5 having been using 3.1 and how i structured the
project nolonger seems to work. I cant work out what im doing wrong.
Ive been working from tutorials which seperate the Mainformhandler event
code from the main startup code functions. The header file provides the
function prototype.
i have three files.
Starter.h -- The prototype of the Mainformhandler event
Startermain.c -- The Actual code for Mainformhandler event
Start.c -- PilotMain etc. etc.
However when i compile using 3.5 i get this error.
Link Error : Starter.c: 'MainFormHandleEvent' referenced from
'AppHandlerEvent' is undefined.
The error is to do with the line below
static Boolean AppHandleEvent(EventPtr eventP)
{
...
case MainForm:
FrmSetEventHandler (pForm, MainFormEventHandler);
...
}
If i create a new multiseg project from 3.5 stationary i notice that before
the above line it puts:
...
extern Boolean MainFormHandleEvent(EventPtr eventP);
FrmSetEventHandler (pForm, MainFormEventHandler);
...
Now is this necessary for a none segmented project ? if so Why? I dont
understand why my header prototype for this procedure is not recognised. Is
it to do with the compiler? What setting do i need to change for it to
compile properly?
Codewarrior R6 (latest updates installed)
Thanks
--
Emile Swain
* * * * * * * * * * * *
Creative Developer
www.AKQA.com
* * * * * ** * * * * * *
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/