Developers guide
Chapter 2: The C++ Library
Adding the Psion TeklogixLibraries
15 Psion Teklogix Mobile Devices SDK Developers Guide
2.3.3 Adding the Psion TeklogixLibraries
1. Open the Project menu and select [Project Name] Properties....
2. Select Configuration Properties > Linker > Input from the tree structure on the left.
3. Click in the field next to Additional Dependencies and add the following path:
C:\Program Files\Psion Teklogix
1
\Mobile Devices SDK V3.1\<OS Directory>
2
\<VS
Directory>
3
\PtxSdkCpp.lib
1
If you installed the SDK to a directory other than the default, change the path accordingly.
2
Replace with the subdirectory appropriate to the OS you will be deploying your application (Windows CE
5.00, WindowsMobile5, WindowsMobile6).
3
Replace with the subdirectory that corresponds to your version of Visual Studio (Studio2005, Studio2008).
2.3.4 Deploying the Psion Teklogix DLL
When you deploy your application to the device, the files PtxSdkCommon.dll and
PtxSdkCpp.dll must be deployed as well. These files can be found in the same directory as the
PtxSdkCpp.lib file in the previous step. Copy the files to either the \Windows directory, or to the
directory where the rest of the project files reside. The .dll files will then be included automatically
when you deploy the solution in Visual Studio.
2.4 Troubleshooting
1. An error message may be generated during deployment because the code is compiled on a
platform with a different name. If you see this message, simply click OK. This does not have
any effect at run time.
2. Fatal Error C1189 may appear when you attempt to build a Debug version of the project.
To prevent this error either build a Release version instead, or do the following:
i. Open the Project menu and select [Project Name] Properties....
ii. Select Configuration Properties > C/C++ > Code Generation from the tree structure on
the left.
iii. Click in the field next to Runtime Library and change the selection to Multi-threaded
(/MT).
iv. Select Configuration Properties > C/C++ > Preprocessor from the tree structure on the
left.
v. Click in the field next to Preprocessor Definitions and delete the text _DEBUG; from the
string.
vi. Click OK.