On Windows Mobile operating systems, there is no ODBC driver manager. The import library (dbodbc16.lib) defines entry points directly into the SQL Anywhere ODBC driver dbodbc16.dll. This file is located in the SDK\Lib\CE\Arm.50 subdirectory of your SQL Anywhere installation.
Since there is no ODBC driver manager for Windows Mobile, you must specify the location of the SQL Anywhere ODBC driver DLL with the DRIVER= parameter in the connection string supplied to the SQLDriverConnect function. The following is an example:
szConnStrIn = "driver=\\Windows\\dbodbc16.dll;dbf=\\My Documents\\demo.db"
To link to an ODBC application for Windows Mobile, add the directory containing the platform-specific import library to the list of library directories.
For a list of supported versions of Windows Mobile, see the SQL Anywhere for PC Platforms table at http://www.sybase.com/detail?id=1002288.
The sample program (odbc_sample.cpp) uses a File Data Source (FileDSN connection parameter) called SQL Anywhere 16 Demo.dsn. This file is placed in the root directory of your Windows Mobile device when you install SQL Anywhere for Windows Mobile to your device. You can create file data sources on your desktop system with the ODBC Data Source Administrator, but they must be set up for your desktop environment and then edited to match the Windows Mobile environment. After appropriate edits, you can copy them to your Windows Mobile device.
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0|