> // Force a fixed font
> if ((err = SysAppLaunch(0, g_dbID, 0, PPLC_FORMAT_MONOSPACE, 0, &
>g_resultP)))
> THROW(PRINTERR_CANNOT_SET_MONOSPACE_FONT);
SysAppLaunch returns its OWN error in err (see the PalmOS Docs) which
basically reflect the success or failure of the SysAppLaunch itself. The
program which is launched (g_dbID in the above example) returns its
result in the resultP DWord pointer (g_resultP in the above example),
again as described in the PalmOS docs. PalmPrint returns a 0 for success
and 1 for failure (because PalmPrint displays its own error messages,
e.g., "Printer not found", etc., we didn't deem it necessary to return
more specific error codes, although we may change that some day).
Steve Patt
President, Stevens Creek Software
http://www.stevenscreek.com/pilot
The home of...
PalmPrint && UnDupe && AreaCoder && Handy Randy
Athlete's Calculator && PocketTimer && SnailMailer
Athlete's Diary && On Hand && Take An Order! && many more