Sample C code to acquire AIM DFC definitions  Compiling the application

Chapter 2: Developing Custom Applications

Generating the stub code

Use the stub code generator and templates to generate the stub code, based on your IDL file. There are ten code templates included in Impact 5.4. Use the first four to generate client (acquire) applications, and the latter four to generate server applications.

These templates are located in x:\Sybase\ImpactServer-5_4\include\IMPACT\NIDL on Windows and in ~/Sybase/ImpactServer-5_4/include/IMPACT/NIDL on UNIX, where “x” and “~” represent the location where the e-Biz Impact server is installed.

Enter the following at the command line to generate stub code files:

ims.nidl -a/-s idlfile.idl -d path

where -a and -s indicate the application type (acquire or server), -d is optional, and indicates the path to the NIDL template file location (template files are listed above). If you do not indicate the path to the NIDL templates, e-Biz Impact uses the default location.

The following files are generated for each application type:

For server applications, the file names are identical, but replace “Acquire” with “Server”.





Copyright © 2005. Sybase Inc. All rights reserved. Compiling the application

View this book as PDF