G
Guest
I cannot get my C# program to access a DLL program written in COBOL. I use
the following code to represent the program:
[DllImport("readmf.dll")]
public static extern void CYREAD(string linkfile, linkdata ld);
I use the following statement
CYREAD(linkfile, ld)
and it said that the program readmf.dll cannot be found even though I have
DLL in by bin, debug, and root directory along with .LIB file. I then tried
to add a reference to it but when I clicked on the DLL to add it I receive a
message that says the file could not be added. I was able to access a COBOL
DLL using C++. What am I doing wrong in C#?
the following code to represent the program:
[DllImport("readmf.dll")]
public static extern void CYREAD(string linkfile, linkdata ld);
I use the following statement
CYREAD(linkfile, ld)
and it said that the program readmf.dll cannot be found even though I have
DLL in by bin, debug, and root directory along with .LIB file. I then tried
to add a reference to it but when I clicked on the DLL to add it I receive a
message that says the file could not be added. I was able to access a COBOL
DLL using C++. What am I doing wrong in C#?