You cannot call a managed code assembly (.dll) directly from a native COBOL program using the CALL statement. You must instead build the managed code .dll for use with COM Interop and register it and then call it using the COM client support in the native OLE class libraries. This is covered in the docs here: An example can also be found here. This example uses Net Express to develop the native program which calls a managed .net Visual COBOL assembly but the same source can be used in a Visual COBOL native project. There is also a tutorial covering this topic here:
↧