Using static link library in managed C# code

  • Thread starter Thread starter vb.here
  • Start date Start date
V

vb.here

Hi,

I have to use a statically linked library .lib(unmanaged) in managed
C# code.
I have googled and mostly got how to use dll in C# code; but I don't
have a dll.

So, can I do it? If yes, what is/are the way(s).

Regards,
Vb
 
Hi,

I have to use a statically linked library .lib(unmanaged) in managed
C# code.
I have googled and mostly got how to use dll in C# code; but I don't
have a dll.

So, can I do it? If yes, what is/are the way(s).

Create a .NET assembly using C++/CLI which links in the static lib and wraps
its functions with .NET wrappers, exposing them as managed functions to your
C# app.

-- David
 
Back
Top