I know two methods:
Boolean onPOSE()
{
UInt32 value;
Err err;
// works on all versions of the Palm OS
return (FtrGet('pose', 0, &value) == errNone);
}
#include «HostControl.h» // distributed with POSE
Boolean onPOSE()
{
// works only on versions of the Palm OS >= 3.0
return (HostGetHostID() == hostIDPalmOSEmulator);
}
On Tue, 6 Jan 2004 10:49:47 -0000, Charles Garcia-Tobin wrote
> Hi there
>
> Is there a way of finding out if you are running on the emulator
> at run-time?
>
> Cheers
>
> Charles
>
----
Best regards,
Anatoliy SHUBA (AS1069-UANIC)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/