Please let me know what you find...
/***********************************************************************
*
* This 5 line program will execute flawlessly in OS 3.3. However
* in OS 3.5 it will crash somewhere in the ROM routines during the
* first call to WinEraseLine.
*
* Open constructor 1.5 and create a new project. Add a single empty
* form and call it Main. Adjust the second #include statement
* (below) to point to the resultant header file. Be sure to include
* the resource itself in your project file.
*
* I am using MetroWerks CodeWarrior R6.
* I have tried the C++ compiler with the 2Byte Int start-up library,
* and the C compiler with the standard StartUpCode.lib.
*
***********************************************************************/
#include <PalmOS.h>
#include "temp_res.h"
UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags)
{
FormPtr frm;
Coord j;
if (cmd == sysAppLaunchCmdNormalLaunch)
{
frm = FrmInitForm(MainForm);
FrmSetActiveForm(frm);
for (j = 0;j<160;j++)WinEraseLine(0,j,159,j);
FrmDeleteForm(frm);
FrmCloseAllForms ();
}
return (0);
}
derik
email: [EMAIL PROTECTED]
WWW: http://www.pobox.com/~derik
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html