Download Print this page

C# Version; Objective C Xcode Integration - Socket ScanAPI Reference Manual

Advertisement

Socket ScanAPI Reference
UpdateWorkspace.jar tool creates a series of Path Variables that are used mostly for
compiling the SDK Sample application. The sample application is sharing source files
across BlackBerry and Android by using the Path Variable mechanism available in
Eclipse. Since the Path Variable contains a complete path, and not a relative path,
this tool updates these variables with the path of where the ScanAPI SDK installed
on the host machine. The Path Variables are stored in the Eclispe workspace. The
tool asks the user for the path of the workspace to update with these new Path
Variables.
SetupScanAPI_SDK.jar. tool modifies the project settings of the sample application
for Android platform and setup the ScanAPI SDK path in the user library file that is
used for the BlackBerry platform.
If only one platform is targeted, it is entirely safe to run both of these tools.

6.3 C# Version

ScanAPI has been compiled with Visual Studio 2008 and using the Compact
Framework 2.0 and the .NET framework 3.5.
The C# version uses a wrapper. ScanAPI has been compiled as a native (unmanaged)
DLL. This DLL is ScanAPIDLL.dll for Windows platforms and ScanAPIDLLWM.dll for
Windows Mobile platform. The managed API is assembled in ScanAPIManaged.dll
for Windows platforms and in ScanAPIManagedWM.dll for the Windows Mobile
platforms.
Both sets of DLLs are therefore required on the host device and should be located at
the same place. So for a Windows host, the application using ScanAPI should have in
its directory ScanAPIDLL.dll and ScanAPIManaged.dll. Same for a Windows Mobile
host, the application using ScanAPI should have in its directory ScanAPIDLLWM.dll
and ScanAPIManagedWM.dll.
In order to build your ScanAPI application, add the ScanAPI Managed reference in
the References folder of your application by browsing to where ScanAPI SDK is
installed on your developer machine, and pointing to the right dll. Depending on
where the ScanAPI SDK has been installed, the path may look like this:
C:\Program Files\Socket Mobile\SocketScan 10\ScanAPI_SDK\Windows\lib.

6.4 Objective C Xcode integration

ScanAPI is released in a static library form, a serie of header files and the source files
for ScanApiHelper, DeviceInfo and Debug.
© 2013 Socket Mobile, Inc.
36/152

Advertisement

loading
Need help?

Need help?

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