Linking with .OBJ object files

U

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
 
M

Mattias Sjögren

Does anyone know if the OBJ files are compatible with the .NET al.exe

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
 

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