In my app I call HsGetVersionString() to get Handspring's serial device number.

This call is not available on all devices, so I check for Treo 600's
signature before I call it (sysFtrCreator/sysFtrNumOEMCompanyID is
'hspr', and sysFtrCreator/sysFtrNumOEMDeviceID is 'H101').

This check is not perfect: it won't work on future Treo's and doesn't
work on other Handspring devices.

Is there a better, reliable way to find out if I can call a given
function? Maybe there's a way to check if a given trap is implemented?

Or maybe there's a documented check that gurantees that
HsGetVersionString() exists? (I googled for HsGetVersionString() but
didn't find any documentation about it.)

Krzysztof Kowalczyk | http://blog.kowalczyk.info

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

Reply via email to