My goal is to call a function in a C++ application from my COBOL program. I am able to call an exported function in a Win32 C++ dll from my COBOL program using "CALL" statement. But I am not sure of how to call a function in a C++ application.
Consider, I have an Win32 C++ application, "MyApplication.exe" with two functions, "MyFunc1" and "MyFunc2" and I have an COBOL program, "CobolExec.CBL".
1. How can I call the functions, MyFunc1 and MyFunc2 from CobolExec.CBL ?
2. Should I first create another process for "MyApplication.exe" using CreateProcess from my cobol program? How should I do it?
Could you please help me by providing your inputs on how to implement this? I greatly appreciate your help in this regard. Expecting your earliest reply.
Thank you in advance.