A sample eMbedded Visual C++ project is provided in the samples-dir\UltraLite\CEStarter directory. The workspace file is samples-dir\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 $(SQLANY11)\SDK\Include 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 "$(SQLANY11)\ultralite\ce\processor\lib\ulrt.lib"
where processor is the target processor for your application.
Add winsock.lib.
The .sqc file (embedded SQL only):
Add ul_database.sqc and ul_database.cpp to the project
Add the following custom build step for the .sqc file:
"$(SQLANY11)\Bin32\sqlpp" -q $(InputPath) ul_database.cpp |
Set the output file to ul_database.cpp.
Disable the use of precompiled headers for ul_database.cpp.
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |