>Subject: Re: Emulator OR Pilot?
>From: Chris Faherty <[EMAIL PROTECTED]>
>Date: Thu, 24 Aug 2000 11:06:57 -0400 (EDT)
>X-Message-Number: 33
>
>On 24-Aug-2000 Rick Gadbois wrote:
>
> > Is there a way to tell from within your program if it is running in the
> > emulator or a real palm pilot??
>
>Boolean inposer;
>DWord temp;
>
>if (FtrGet('pose', 0, &temp) == ftrErrNoSuchFeature) inposer = false;
>else inposer=true;
If you know your app only runs on 3.0 or later devices, you can use
the HostControl.h calls, for example:
inPoser = HostGetHostID() == hostIDPalmOSEmulator;
-- Ken
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/