DBDK Visual C++ Add-In and IfxQuery

The OneDB® DataBlade® Developers Kit (DBDK) provides the DBDK Visual C++ Add-In and IfxQuery tools for debugging C and C++ code on Windows™.

The DBDK Visual C++ Add-In is a toolbar you add to Microsoft™ Visual C++, Version 6.0, to aid in debugging. You must have HCL OneDB on the same computer as the DataBlade Developers Kit to use the debugging features of the add-in.

The IfxQuery tool is launched by the add-in from within Visual C++. IfxQuery runs the SQL unit test file in the active window in Visual C++.

The add-in and IfxQuery automate many of the steps necessary for debugging a DataBlade module. After you compile your DataBlade module in Visual C++ and set breakpoints in your source code, you can click Debug DataBlade Module.

The Debug DataBlade Module command performs the following steps:
  1. Checks if the DataBlade module is compiled (and compiles it, if necessary)
  2. If necessary, creates a directory for the DataBlade module under the INFORMIXDIR\extend directory
  3. Installs the DataBlade module shared library file and SQL scripts in the INFORMIXDIR\extend\project.0 directory
  4. Shuts down the database server
  5. Starts the Visual C++ debugger and the database server attached to the Visual C++ debugger
  6. Launches IfxQuery, if the active window contains an SQL file
  7. If necessary, creates the database specified by the add-in
  8. Connects to the database specified by the add-in
  9. Registers the DataBlade module
  10. Executes the SQL statements from the unit test file
  11. Writes the results to an HTML file
  12. Launches the default HTML browser for your computer
  13. Displays the SQL results in the HTML browser

The first time you run the Debug DataBlade Module command for a DataBlade module project, the Properties dialog box appears, in which you specify the database server and database you want to use for debugging. You can also access the Properties dialog box with the Run Properties dialog box button of the add-in.