Using the .NET Interface Assembly, "wrunnet.dll"

A more precise way to call COBOL from .NET is using the application programming interface (API) contained in the dynamic link library, "wrunnet.dll". .NET developers can use this interface to call COBOL functionality (programs, entry points, etc.) from their .NET class.

The API consists of one .NET class: CVM. CVM class allows .NET developers to programmatically manage the ACUCOBOL-GT runtime, giving them low-level control of COBOL objects from .NET.

Note that you can call COBOL from .NET locally or remotely. You can even have the runtime execute remotely without a COBOL object executing on the client. All you need on the client is a .NET program and a runtime. For this to work, you set CODE_PREFIX in the configuration file that you provide with the runtime initialization to point to a remote server hosting your COBOL application. The remote server must also be running AcuConnect. AcuConnect is able to execute a COBOL object remotely and share data with the local runtime. For more information on executing remote COBOL programs with AcuConnect, please see the AcuConnect User's Guide.