| DataBlade Developers Kit Tutorial |
Exercise 1: Creating a Simple User-Defined Routine, continued
When you generate source code, BladeSmith creates three makefiles in the src\C directory. The instructions in this exercise use the AddInts.mak Microsoft Developer Studio Visual C++ file to compile the source code into the AddInts.bld dynamic link library file. For information about compiling on UNIX, see the DataBlade Developers Kit User's Guide.
Microsoft Developer Studio creates a Debug subdirectory under the src\C directory to hold debugging dynamic link libraries.
To package a DataBlade module for installation on other systems, you typically use BladePack. However, because of the simplicity of the AddInts DataBlade module, you do not use BladePack to create an installation package.
These instructions describe how to start Informix Dynamic Server on Windows NT. For instructions on starting Informix Dynamic Server on UNIX, see the Administrator's Guide for your database server.
If the database in which you plan to test the AddInts DataBlade module does not yet exist, create it using the following SQL statement: create database addints_test with buffered log;
After you have installed your DataBlade module, you must register it in the database where you plan to use it. You should be logged on as the default user for your workstation (so that your NT or UNIX login is the same as your Informix user ID).
See the DataBlade Module Installation and Registration Guide for information about using BladeManager from the command line.
After you install and register the DataBlade module, the Informix database accepts the new AddIntegers() function as if it was built-in.
execute function AddIntegers(2, 5);
Copyright © 1998, Informix Software, Inc. All rights reserved. |