At 4:52 PM -0600 2000/03/17, Richard Burmeister wrote:
>Does anybody know why the starter code for CodeWarrior contains a PilotMain
>that just passes all of its arguments to StarterPalmMain, instead of just
>putting the startup code in PilotMain and dispensing with StarterPalmMain?

Because when using a lower level debugger and asking for a stack dump, you can more 
easily see where your app code ends and the OS code begins (i.e. you see a debug 
symbol for "StarterPalmMain" but not for "PilotMain"). It's not necessary to follow 
this convention; you can just as easily put the code right there in PilotMain.


>Also, why is cmdPBP commented out of the declaration for StarterPalmMain?

Because it's not used. The comment is one way of avoiding an unused-variable warning 
during compilation. Another way is to use: #pragma unused(variables)

Regards,

Jim Schram
Palm Incorporated
Partner Engineering



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to