I need to consume a .NET COM dll in Visual Cobol but there are certain problem which i am facing while trying to consume that.
I have native COBOL DLL which is internally calling a Native DLL which is interacting with the .NET COM component.
COBOL DLL(Base) --> Native COBOL DLL(Layer) --> .NET COM DLL
The call is driven by Base DLL to Layer DLL , The layer DLL create an object of COM class and execute the method and return the values to Layer Dll and dispose the object.
I need to retain the object and its value in Base Layer can someone suggest me solution for the same.
I am thinking of declaring a Global/external variable so that i can retain the values in the base layer. I can change the base layer so i am avoid using linkage variables.
Please suggest me the usage of Global or external variable in Visual COBOL