Yes Adam you are right, but as far as the emulator documentation and/or
header files, maybe I didn't look hard enough but.. I didn't find anything
like what what Chris Faherty suggested (and it worked), the following:

if (FtrGet('pose', 0, &temp) == ftrErrNoSuchFeature) inposer = false;
else inposer=true;

thanks for the input folks.
--------------------
JB Parrett wrote:
> on 8/24/00 10:06 AM, Rick Gadbois at [EMAIL PROTECTED] wrote:
>
> > Is there a way to tell from within your program if it is running in the
> > emulator or a real palm pilot??
>
> #if EMULATION_LEVEL != EMULATION_NONE
> // You are on the emulator
> #else
> // You are on a device
> #endif
>

Those are compile time directives for conditional inclusion of code.  I
don't think that's what Rick was after.  As I understood the question,
he has one PRC and he wants it to be able to tell, at run time,
whether it is in the emulator or in a real palm pilot.

Perhaps looking into the behavior of the various Host*() functions
might lead you to a solution.  Reading the Emulator docs might not
hurt *grin*.

-----------------



-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to