Discussion Locked

Using legacy C library with .Net?

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a legacy .lib file (and the .h header file that goes with it) and I need a way to call its functions from C#. Is this possible, and if so, how? The source is NOT available. The library is 32 bit at least ;^)

1 reply

by amoljpatil

You cannot include these files in your .net project, you can do one of two
things:
1- Create a DLL from those files and later you can call this dll from the
.net app
2- if you know C/C++/VC++ you can try to convert/reuse then directly in a managed
C++ dll that your c# app can call directly.

This discussion is closed to new replies.