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
- Open the project.dsw in Visual C++.
- Choose .
- 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.
- Click OK.
- Choose 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:
- Creates a project.0 directory under the directory where your database server is installed (%INFORMIXDIR%\extend).
- Copies the project.bld file and the SQL scripts to that directory.
- Marks the project.bld file as read-only.