Lib file

D

Dave

Hi,
I am writing a C# application that need to use an old c++ code in lib files
from vc++ 6 can i do that?
Can i import lib file to C# app and how?
Can you give me some examples code how to do that?

Thanks
 
N

Nicholas Paldino [.NET/C# MVP]

Dave,

You won't be able to use them directly in .NET. Rather, you will have
to create a new managed C++ project where you would link to the lib, and
expose the classes inside of it. If they are just functions, then you can
wrap the functions in a regular dll that exports functions, and then access
it through the P/Invoke layer.

Hope this helps.
 

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

Similar Threads


Top