Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Interfacing Realia+VACOBOL modules

Status
Not open for further replies.

cobp

Programmer
Oct 19, 2001
30
DE
Is it possible to invoke a Realia COBOL module(dll) from a VA COBOL program.

We had an application developed on VACOBOL and it allows users to write their own custom modules and can combine with our application. One of our customer had a Realia COBOL compiler and he wants to generate a dll file using Realia compiler and want to invoke it from the Visual age COBOL module.
 
Hi,

CA-REALIA can work with an C- or Pascal- interface. It is created by using a C_ or P_ prefix in the name I think...

or when Realia takes control:

[DATA]
143700* TRANSFER CONTROL TO PASCAL OF C
143800*
143900*
144000 CALL 'MLI_XCTL_C_PROCEDURE-NAME' USING PARAMETERS
144100 CALL 'MLI_XCTL_P_PROCEDURE-NAME' USING PARAMETERS
144101 CALL 'MLI_XCTL_C' USING POINTER REST-OF-PARAMETERS
144102 CALL 'MLI_XCTL_P' USING POINTER REST-OF-PARAMETERS
[/DATA]

I guess you can find some examples on the following FTP site:

ftp://ftp.cai.com/pub/realia/Samples/

I hope this helps you.

Regards,

Crox

 
Hi Crox,

Thanks for the information.
I need to invoke a CA Realia COBOL from a VA COBOL program. Using C interface, I could invoke a C program from the VA COBOL and which inturn could invoke the CA Realia COBOL program.
Do you know the calling convention for invoking the CA REALIA COBOL program from a C program. The C compiler used is MS-DEV VISUAL C++.

Best Regards,
cobp
 
Hi,

In the ca-examples in the link there is a c-to-cobol example. It is not much to download even all of them. The file ctocobol.zip is probably what you are looking for in the real4 examples.

Regards,

Crox
 
Hi Crox,

Thank u very much for the answer. I'll give a try and get back to you later.

Regards,
cobp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top