Using static link library in managed C# code

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
 
D

David Ching

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
 

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

Top