informix
DataBlade Developers Kit User's Guide
Creating ActiveX Value Objects

Compiling Client and Server Projects

Among the code files that BladeSmith generates are the following makefiles and project files:

When you compile a server project, a Project.bld file is created. When you compile a client project, a ProjectX.dll file is created.

This section describes how to compile both a server project and a client project.

Compiling a Windows NT Server Project

For Windows NT server projects, BladeSmith generates a Project.dsw file in the src directory to use with Microsoft Visual C++ 6.0.

To compile a server project, the INFORMIXDIR environment variable must be set to the Informix server installation directory.

Because BladeSmith does not generate tracing routines in the source code, projects are not built with tracing support. If you have added DataBlade API tracing routines to your code, you must add the instruction to compile with tracing support to your makefile or project file. For more information, see Tracing and Error Handling.

To compile a Windows NT server project

  1. If necessary, open your project.dsw file in the src directory in Visual C++.
  2. Choose Build Set Active Configuration.
  3. Select a version of the project in the Set Active Project Configuration dialog box:
  4. Click OK.
  5. Choose Build Rebuild All to compile.

Visual C++ creates both a WinNT-i386 and a Debug directory under the src\ActiveX directory to hold the release version and the debug version, respectively, of the dynamic link library.

Compiling a Client Project

For Windows 98 and NT client projects, BladeSmith generates a ProjectX.dsp file in the src\ActiveX directory to use with Visual C++ 6.0 or later.

The general process for compiling a client project is:

  1. Set the include and library file directories in Microsoft Developer Studio.
  2. Compile the ProjectX.dsp file.

To set the include files and library file directories

  1. In Microsoft Developer Studio Visual C++, choose Tools Options.
  2. Click the Directories tab in the Options dialog box.
  3. Select Include files from the Show directories for list box.
  4. If the following directories are not on the list, add them:
  5. Select Library files in the Show directories for list box.
  6. If the following directories are not on the list, add them:
  7. Click OK to exit the Options dialog box.

To compile a Windows 98 or NT client project

  1. In Microsoft Developer Studio Visual C++, choose File Open and open ProjectX.dsp.
  2. Choose Build Set Active Configuration.
  3. Select a version of the project in the Set Active Project Configuration dialog box:
  4. Click OK.
  5. Choose Build Rebuild All to compile.

Visual C++ creates both a WinNT-i386 and a Debug directory under the src\ActiveX directory to hold the release version and the debug version, respectively, of the dynamic link library.


DataBlade Developers Kit User's Guide, Version 4.0
Copyright © 1999, Informix Software, Inc. All rights reserved