Call .lib file in c#

M

Manoj Nair

Hi,
How can I use a .lib file made in c++ in my c# application

thanks in advance
Manoj
 
J

Jon Skeet [C# MVP]

Manoj Nair said:
How can I use a .lib file made in c++ in my c# application

You can't use it directly - only DLLs can be loaded from C#. However,
you could write a DLL in C++ which linked against the .lib and exposed
everything you needed.
 
M

Manoj Nair

Thanks Jon
Manoj
Jon Skeet said:
You can't use it directly - only DLLs can be loaded from C#. However,
you could write a DLL in C++ which linked against the .lib and exposed
everything you needed.
 

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