Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » UltraLite - C and C++ Programming » Application Development » Developing UltraLite applications for Windows Mobile

 

The sample eMbedded Visual C++ project

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.