Download Print this page

Property Ksktscanpropidinterfaceversion - Socket ScanAPI Reference Manual

Advertisement

Socket ScanAPI Reference
default:
OutputString("Value: Type unknown or not implemented:"
break;
}
Objective C:
switch([[scanObj Property]getType]){
case
kSktScanPropTypeNone:
break;
case
kSktScanPropTypeVersion:
OutputString("version: %x.%x.%x %d\nDate: %x/%02x/%02x
[[[scanObj Property] Version ]getMajor],
[[[scanObj Property] Version ]getMiddle],
[[[scanObj Property] Version ]getMinor],
[[[scanObj Property] Version ]getBuild],
[[[scanObj Property] Version ]getYear],
[[[scanObj Property] Version ]getMonth],
[[[scanObj Property] Version ]getDay],
[[[scanObj Property] Version ]getHour],
[[[scanObj Property] Version ]getMinute]);
break;
/.../
default:
OutputString("Value: Type unknown or not
Property]getType]);
break;
Version
ScanAPI Interface Version

13.3 Property kSktScanPropIdInterfaceVersion

This property is used to retrieve the ScanAPI interface version. If the interface
contract has been modified, this version will be changed to reflect that modification.
This is important for an application that uses ScanAPI as a separate component such
as a DLL, where ScanAPI can be updated without the need of the application code to
be recompiled. Therefore the ScanAPI DLL installed on the host might be different
from the ScanAPI used during the development of an application. An application can
check if the ScanAPI installed on the system has the expected interface.
ScanAPI will always try to provide a backward compatible interface. Therefore if the
interface version is higher than what the application expected, the application
should not have any problem using this version of ScanAPI. However, if the interface
version returned is lower, the application may not be able to run correctly if it uses
some property not available in the current version of the installed ScanAPI.
This property can only be used with the SktScanGet API. Using it with the SktScanSet
API will fail.
© 2013 Socket Mobile, Inc.
data._scanObject.Property.Type + CARRIAGE_RETURN);
+
%02x:%02x\n",
implemented:%d\n",[[scanObj
1.0.0 or higher
73/152

Advertisement

loading
Need help?

Need help?

Do you have a question about the ScanAPI and is the answer not in the manual?