Using a static ".lib" file in managed C++

  • Thread starter Thread starter vikky
  • Start date Start date
V

vikky

Hi,

I have natively compiled ".lib" file which I need to use in managed
code. After some searching, I got to know that C++.NET 2005 through
its C++/CLI can directly make use of native binaries(including .lib
files). However I didn't find even a single example of elaborating how
to do it. Can anyone provide a small example snippet?

Regards,
VB
 
I have natively compiled ".lib" file which I need to use in managed
code. After some searching, I got to know that C++.NET 2005 through
its C++/CLI can directly make use of native binaries(including .lib
files). However I didn't find even a single example of elaborating how
to do it.

There shouldn't be anything out of the ordinary to it - perhaps that's
why there's no specific instructions?

I'd just #include the lib's header file, write the code, and add the
lib to the list of libraries in the Linker settings.

Dave
 
Back
Top