Hi
We have a set of 2 programs , Both the programs have Multiple Entry Points. We are trying to Migrate them to Visual COBOL and club them in to DLL. So that they can be consumed by .NET.
While doing so we are following an approach of creating a wrapper class as mentioned below:-
1. We have created an Native Link Library project and added all 7 programs and compiled them. Compilation was successful and it created an Native Dll. 2. Now we have created a Managed Class library project and added a Wrapper Class program. Where we are making calls to Entry Point of both the programs.
3. Also created an Client Managed Program in one more project of the solution. To Create an instance of class and invoke the methods of the class.
The Startup project is Client Managed Program project.
While Executing it we are getting error 173 - Program not found at the Line where we are making call to Entry Point of Native Program.
Following option we have tried to resolve this:
1. Setting an PP procedure pointer in the Class program to Native.DLL, But some how we are still getting the same error 173.
2. Using the APP.Config File in the Managed Project for setting the PATH variable of the NAtive DLL, Still the same error.
3. Setting the ENTRYNAMEMAP variable with the MFENTMAP file in the APp Config file,
But the error remains the same.
Please let us know where we are going wrong, Also if anyone can share an example of the same situation/problem.
Thanks
Charan