On Windows Mobile operating systems, there is no ODBC driver manager. The import library (dbodbc12.lib) defines entry points directly into the SQL Anywhere ODBC driver dbodbc12.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\\dbodbc12.dll;dbf=\\My Documents\\demo.db" |
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 12 Demo.dsn. This file 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.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |