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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vikky@gmail.com

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

    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(includ ing .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
  • David Lowndes

    #2
    Re: Using a static ".lib&quot ; file in managed C++

    >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(includ ing .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

    Comment

    Working...