Home |
Previous Page | Next Page Programming DataBlade Module Routines in C > Compiling DataBlade Module Code >
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.
To compile and link a dynamic link library using Visual C++
- Open the project.dsw in Visual C++.
- Choose Build > Set Active Configuration.
- 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 Build > Rebuild All to
compile.
Visual C++ creates both a WinNT-i386 and
a Debug directory under the src\c directory
to hold the release version and the debug version, respectively,
of the dynamic link library.
Important:
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
on which the Informix database server resides:
- 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
See Debugging and Testing DataBlade Modules on Windows, for instructions
on using the DBDK Visual C++ Add-In to
edit, compile, and debug a DataBlade module on Windows.
Home |
[ Top of Page | Previous Page | Next Page | Contents |
Index ]