Lib file

  • Thread starter Thread starter Dave
  • Start date Start date
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
 
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.
 
Back
Top