Home All Groups Group Topic Archive Search About

Linking with .OBJ object files

Author
23 Oct 2006 3:41 PM
usenet
I have compiled a VB.NET class using the VBC compiler and need to be
able to link it with some OBJ files which predate .NET. We used to be
able to link these in with a Visual C++ library OK, but wish to replace
the C++ library with a new VB.NET version.

Does anyone know if the OBJ files are compatible with the .NET al.exe
linker? If not, is there any way we can link them with our VB.NET code?
We cannot rewrite the OBJ files as they are a third party product.

Thanks

Rob

Author
23 Oct 2006 5:19 PM
Mattias Sjögren
>Does anyone know if the OBJ files are compatible with the .NET al.exe
>linker?

No, that's a different kind of linker.


>If not, is there any way we can link them with our VB.NET code?

Not directly. But the most recent version of the C++ linker can link
both native libs and managed modules into a single assembly. You'll
still not be able to consume the functionality in the OBJ form VB
without some kind of C++ wrapper though.


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.