I'm trying to call a DLL that I wrote in C# from a GNT called from a native COBOL program. The call is failing with "Server defined OLE exception" (800401F3): Invalid class string...." Now, from past experience, this usually means that the DLL is not registered. However, I did register the DLL.
Now, here's the weird part. If I remove the GNT from the equation, the call to the DLL works fine. So I can call the DLL from a native cobol program, but not from a GNT written in native cobol called by the native cobol driver.
I've attached the source code that I'm working with. Program1.cbl is the driver. Compress.cs is the code for the DLL. Ziphandd.cbl is the GNT making the call. None of the programs are very complicated.
Any suggestions would be most welcome.
Mike