Generating code

About this task

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

Procedure

  1. Choose Generate > .
  2. With the node at the beginning of the file tree selected, click Generate .
  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 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 HCL® 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 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 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 module. Installation files are generated in the project\install directory.

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