Generating code

About this task

To generate a DataBlade® module in BladeSmith and open the project file in Visual C++:

Procedure

  1. Choose Generate > DataBlade.
  2. With the DataBlade node at the beginning of the file tree selected, click Generate DataBlade.
  3. After BladeSmith finishes generating code, click MSDev to start Microsoft™ Visual C++ and open the Project.dsw workspace file.

Results

BladeSmith generates the following files for your DataBlade module:
Table 1. Files generated by BladeSmith
Files Description
Makefiles The Project.dsw file is the makefile for Windows™ and the ProjectU.mak file is the makefile for UNIX™. These files are generated in the project\src directory. See the Informix® DataBlade Developers Kit User's Guide for instructions on compiling on UNIX.
Source code files On Windows, you access these source code files through the Project.dsw file. Source code files are generated in the project\src\c directory.
Unit test files These files contain SQL statements to test your DataBlade module routines during debugging on Windows. Unit test files are generated in the project\src\tests directory.
SQL scripts These files are saved in the project\scripts directory.
Functional test files These files contain SQL statements to test your DataBlade module routines on UNIX after you finish debugging. Functional test files are generated in the project\functest directory.
Installation files These files are used by BladePack when you package your DataBlade module. Installation files are generated in the project\install directory.

For more information about the Generate DataBlade command, see the Informix DataBlade Developers Kit User's Guide.