GUI ScreenIO for Windows

 ScreenIO.com


CA-Realia COBOL

Copy the file GS.COB from the GUI ScreenIO installation directory to wherever you keep your COBOL program source code.

Launch your COBOL program editor.

Open GS.COB so that you can edit it.

Examine the source code (it's pretty simple). The comments at the beginning of the program explain what you need to do.  Remove the comments from the CA-Realia COBOL section of code as shown below:

DATA DIVISION

No changes.

PROCEDURE DIVISION

 0001-PASSTHROUGH-CALL.
*----------------------------------------------------------
*--> CA-Realia COBOL <--*
*
     CALL 'S_GS32' USING BY REFERENCE A B C D.
     GOBACK.
     ENTRY 'GSWINAPI' USING W A B C D E F.
     CALL 'S_GSWAPI' USING BY REFERENCE W A B C D E F.
     GOBACK.

Be sure that the source code for other compilers is commented out.

Save GS.COB.

Compile GS.COB.

Compiling GS.COB

Important: Be sure that Make All Calls Dynamic is NOT checked in the compiler options for this module.  The calls to the GUI ScreenIO runtime modules must be static calls.

Related topics:


Compiling GS.COB using the CA-Realia Workbench

From the Workbench menu, select Build/Options/Program. This will let you define specific options for compiling GS.COB.

Here's what we'd use:

Important: Be sure that Make All Calls Dynamic is NOT checked.

Save GS.COB and compile it, just as you'd compile your other COBOL subroutines.

If you intend to call GS dynamically, you'll need to go to the Link tab and set the link options. Do this as you would for your other subroutines.  

Save your build options and compile GS.


Setting up your default options for using GUI ScreenIO

Select Build/Options/System: DEFAULT... from the menu.  

Select the Link/Module tabs; in the "Other Link Options" field, enter the string:

     -subsystem:windows,4.0

 

Select the Libraries tab and add GS32.LIB to your library list. 

Select the Objects tab and include GS.OBJ in the objects.

You can eliminate this if you store your object modules in a library and refer to that library in your link options.

If you're not familiar with using object libraries, see Tech Tips.

Press the OK button to save your default settings.


© 2000-2019 Norcom, all rights reserved 

TOC

Send feedback to Norcom