Compiling on a Windows operating system

On Windows™, you use the project.dsw file generated by BladeSmith to build your DataBlade® module with Visual C++ 6.0. The compiled DataBlade module links to sapi.lib. This library resolves the mi_ and ifx_ symbols that the database server uses internally.

About this task

To compile and link a dynamic link library by using Visual C++:

Procedure

  1. Open the project.dsw in Visual C++.
  2. Choose Build > Set Active Configuration.
  3. Select a version of the project in the Set Active Project Configuration dialog box:
    • Release. This version is suitable for release and does not contain debugging support.
    • Debug. This version contains support for debugging.
  4. Click OK.
  5. Choose Build > Rebuild All to compile.

Results

Visual C++ creates a WinNT-i386 directory to hold the release version and a Debug directory to hold the debug version directory under the src\c of the dynamic link library.
Restriction: Do not link the client DataBlade API library in %INFORMIXDIR%\lib\dmi into the DataBlade module; that library resolves client services instead of database server services.
Visual C++ also performs the following tasks on the computer where the HCL OneDB™ database server is:
  1. Creates a project.0 directory under the directory where your database server is installed (%INFORMIXDIR%\extend).
  2. Copies the project.bld file and the SQL scripts to that directory.
  3. Marks the project.bld file as read-only.