Home All Groups Group Topic Archive Search About

How can I use C++ Lib file into dot net

Author
8 Jan 2007 9:14 AM
Umeshnath
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?

Author
8 Jan 2007 10:09 AM
Manish Bafna
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.


Show quote
"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?
>
Author
8 Jan 2007 10:18 AM
Manish Bafna
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.

Show quote
"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?
>

AddThis Social Bookmark Button