UltraLite User's Guide
Developing Applications for Windows CE
This section contains instructions pertaining to building UltraLite applications for use under Microsoft Windows CE.
For a list of supported host platforms and development tools for Windows CE development, and for a list of supported target Windows CE platforms, see Supported platforms for C/C++ applications.
You can test your applications under an emulator on most Windows CE target platforms.
The recommended development environment for Windows CE at the time of writing is Microsoft eMbedded Visual C++ 3.0. This development environment is available from Microsoft as part of eMbedded Visual Tools.
You can download eMbedded Visual C++ from the Microsoft Developer Network at http://www.microsoft.com/mobile/downloads/emvt30.asp.
A sample eMbedded Visual C++ 3.0 project is provided in the Samples\UltraLite\CEStarter directory under your SQL Anywhere directory. The workspace file is Samples\UltraLite\CEStarter\ul_wceapplication.vcw.
When preparing to use eMbedded Visual C++ for UltraLite applications, you should make the following changes to the project settings. The CEStarter application has these changes made.
Compiler settings:
Add $(ASANY8)\h to the include path.
Define appropriate compiler directives. For example, the UNDER_CE macro should be defined for eMbedded Visual C++ projects.
Linker settings:
Add "$(ASANY8)\ultralite\ce\processor\lib\ulrt.lib"
where processor is the target processor for your application.
Add winsock.lib.
The .sqc file (embedded SQL applications):
Add ul_database.sqc and ul_database.cpp to the project
Add the following custom build step for the .sqc file:
"$(ASANY8)\win32\sqlpp" -q -c "dsn=UltraLite 9.0 Sample" $(InputPath) ul_database.cpp
Set the output file to ul_database.cpp.
Disable the use of precompiled headers for ul_database.cpp.
Choosing how to link the runtime library