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

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
 
D

David Lowndes

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
 

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