Accessing unmanged COBOL DLL from C#

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#?
 
F

Frank Loizzi

Am Thu, 31 Aug 2006 20:50:02 -0700 schrieb Parrot:

Hello,
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#?

You are in the wrong newsgroup for this kind of questions. Ask this here:
microsoft.public.dotnet.framework.interop

Bye

Frank Loizzi
Dortmund, Germany
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top