Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: native COBOL calling object

$
0
0

Hi Fran,

The native to managed interface in Visual COBOL is the same as it is in Net Express. You would register your .NET assembly for use with COM Interop and then you would use the native OO COBOL support for calling a COM library.

In Visual COBOL you do not have the Type Library Assistant like in Net Express but the name of the class would be the name of the namespace and class of the .NET class you are calling. If you have NX installed on the same system you could use the Type Library Assistant and use the generated code in Visual COBOL.

Example:

In you .NET class you have:

class-id testVCServer.VCCOMServer.

In your native client you would use:

     $set ooctrl(+p)
      id division.
      program-id.  VCCOMClient.
      class-control.
          VCCOMServer is class "$OLE$testVCServer.VCCOMServer".


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>