ftrErrNoSuchFeature is returned as the function result, not the value poured
into "feature".  You need:

UInt32 feature;
Err result = FtrGet (kPalmOSEmulatorFeatureCreator, 
kPalmOSEmulatorFeatureNumber, &feature);

if (result != ftrErrNoSuchFeature)
        ... on Poser ...

-- Keith

-----Original Message-----
From: Steve Mann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 5:58 PM
To: Palm Developer Forum
Subject: POSE Feature check on OS 3.1H2


I'm using the following to see if I'm running on POSE.

UInt32 feature;
FtrGet ( kPalmOSEmulatorFeatureCreator, 
kPalmOSEmulatorFeatureNumber, &feature);

Normally, I would expect FtrGet to set feature to ftrErrNoSuchFeature 
on a real device. On a Visor running OS 3.1H2, however, FtrGet 
returns zero.

Any suggestions as to what I'm doing wrong, or why it doesn't work 
and how to solve the problem? Thanks.

Regards,
Steve Mann


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

Reply via email to