Call C (exposed) function from COBOL program
Posted
by Sunscreen
on Stack Overflow
See other posts from Stack Overflow
or by Sunscreen
Published on 2010-05-10T15:33:16Z
Indexed on
2010/05/10
20:24 UTC
Read the original article
Hit count: 193
Hi,
Some time ago, I had created a DLL to be used in another C program. Basically I exposed specific functions by using the following within my dll:
void __declspec(dllexport) MyFunc(myFirstArg, mySecondArg);
Then I added an external file (MyExposedDll.h) with all exposed functions and structures to the new C program and included it:
include MyExposedDll.h
Now how can I use this dll (or mainly a dll) to a Cobol function? I need to expose a function that has two char* arguments and returns a boolean.
Thanks, Sun
© Stack Overflow or respective owner