Linking with .OBJ object files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • usenet@tynemarch.co.uk

    #1

    Linking with .OBJ object files

    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

  • Mattias Sjögren

    #2
    Re: Linking with .OBJ object files

    >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.

    Comment

    Working...