I have a library file (.lib) which was developed in c++, I need to use this
lib file into .net
Can I convert the lib file into dll or is there any way to use this lib in
.net?

RE: How can I use C++ Lib file into dot net by ManishBafna

ManishBafna
Mon Jan 08 04:09:00 CST 2007

Hi,
It appears that you dont want to convert your .lib file into DLL and then
use DLLImport.Then Its a better plan to write a wrapper (in Managed C++, of
course) for your unmanaged class as the following Link shows with a simple
example:

http://www.codeguru.com/cpp/cpp/cpp_managed/interop/article.php/c4863/

Thanks and Regards,
Manish Bafna.
MCP and MCTS.


"Umeshnath" wrote:

> I have a library file (.lib) which was developed in c++, I need to use this
> lib file into .net
> Can I convert the lib file into dll or is there any way to use this lib in
> .net?
>

RE: How can I use C++ Lib file into dot net by ManishBafna

ManishBafna
Mon Jan 08 04:18:00 CST 2007

Hi,
you will find following URL also useful:

http://www.ondotnet.com/pub/a/dotnet/2003/01/13/intromcpp.html

Thanks and Regards,
Manish Bafna.
MCP and MCTS.

"Umeshnath" wrote:

> I have a library file (.lib) which was developed in c++, I need to use this
> lib file into .net
> Can I convert the lib file into dll or is there any way to use this lib in
> .net?
>