C# with delphi dll

  • Thread starter Thread starter Coder Coder
  • Start date Start date
C

Coder Coder

Hi,
I have written a very simple, dll in delphi which just returns a
string.
When i try use Add Reference in VS.net 2003, it gives me an error
saying that this is not a valid dll.

Is there anything I can do?

- Thanks
 
(e-mail address removed) (Coder Coder) wrote in
Hi,
I have written a very simple, dll in delphi which just returns a
string.
When i try use Add Reference in VS.net 2003, it gives me an error
saying that this is not a valid dll.

You can only use Add Reference for .Net and COM dlls. For a
"regular" dll, you use Platform Invoke (P/Invoke) to call its
methods. Look in the help file under "platform invoke" and
"DllImportAttribute".

Hope this helps.

Chris.
 
Back
Top