Building an adapter class – FUJITSU J Adapter Class Generator User Manual

Page 19

Advertising
background image

Chapter 3. Developing Programs 19

adapter classes when the class file is not available, see "

Generating an adapter class

when the class file is not available

."

Building an Adapter Class

Finally, compile and link-edit the generated adapter class source to create an adapter

class library (DLL). Use the COBOL project manager to do so.
Refer to the Fujitsu NetCOBOL User's Guide for information on how to use the

COBOL project manager

.

Follow the procedure below to build an adapter class:
1. Create a new project using the project manager.
2. Register the target DLL.
3. Create a COBOL source file folder and store the generated adapter class in it.
4. Specify compiler options.

-

Specify XXX\REP (XXX is the J adapter class generator install folder) for

REPIN.

-

Specify ALPHAL (WORD).

-

When creating an adapter class running with Unicode, specify RCS (UCS2).

5. To determine the compilation order, select “Repository File Search” from the

“Edit” menu and then select “All”.

6. Create a library folder and store the runtime library F3BIJART.LIB of the J

adapter class generator in it. F3BIJART.LIB is available from the LIB folder of

the install folder.

7. Execute "build."
The following files are generated:
• Adapter class DLL file (required for execution)
• Adapter class LIB file (required for link-edition)
• Adapter class repository file (required for compilation)

Generating an Adapter Class When the Class File is Not

Available

The J adapter class generator references the following class information when

generating an adapter class:
• Super class/interface
• Class/interface specified in the public method, constructor parameter, or return

value

• Class/interface specified in the public variable

Advertising