Interfacing to a .lib library

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I know it is possible to interface c# with a dynamically linked library but what about a statically linked library? Is it possible to build an interface to a .lib file? Thanks. -- Bud
 
Thanks. Any reason I couldn't use unmanaged c++ to wrap the lib and create a dll? I only have vc++ 6.0 available

----- Jochen Kalmbach wrote: ----

=?Utf-8?B?QnVk?= wrote
I know it is possible to interface c# with a dynamically linke
library but what about a statically linked library? Is it possible t
build an interface to a .lib file? Thanks. -- Bud

No. You must use (managed) C++ to build a "wrapper" for the lib and make a
DLL. Then you can use it in C#

--
Greeting
Joche

Do you need a memory-leak finder
http://www.codeproject.com/tools/leakfinder.as
 
You can, but you will have to use PInvoke to call the exported function's in
you dll.

Willy.
 
Back
Top