Generate source files

To generate only the source files for objects defined in your project, click the Source node or one of its subordinate nodes in the Generate DataBlade dialog box; then click Generate Source.

The following table lists the source code file generation options.
Table 1. Source code file generation options
Node Code generated
Source All source code in the coding languages you use for your DataBlade® module objects
Client Client code (ActiveX or Java™)
Server Server code in the coding languages you specified when you create objects in BladeSmith
Individual language:
  • ActiveX
  • C++
  • C
  • Java or
  • SPL
Source code only for the selected language
The Source node has these properties:
  • Directory. The default directory is src. To change the name of the top-level directory the source code files are saved in, specify a new directory or path. The path must be relative to the project directory.
  • Logging. The default value is False. To add logging information to your source code files, select True.
  • Tracing. The default value is False. To add tracing to your generated source code, select True. See Tracing and error handling for more information.

The property associated with the C node under the Server node is MMX. The MMX default value is False. You can choose whether to allow Intel™ MMX media enhancement technology in your DataBlade module. To generate the Gen_IsMMXMachine function to check for an Intel MMX processor, specify True. See The Gen_IsMMXMachine() utility function for more information.

BladeSmith writes a header file, source files, and makefiles for Windows™ and UNIX™ operating systems. It also generates other necessary files, depending on the coding language. For information about the source files BladeSmith generates, see Source files generated by BladeSmith and Source files generated for DataBlade modules.

After you generate source files, edit the source files to add your code to the routine declarations BladeSmith generated. For a description of the contents of the generated files and how to modify and compile the generated code, see Programming DataBlade module routines in C, Create ActiveX value objects, or Programming DataBlade modules in Java.