C++ – How to update a C++ dll without needing to relink the exe with the lib file

dllvisual c++

First off , I'm referring to a Windows environment and VC++ compiler.

What I want to be able to do is rebuild a Vc++ dll and maintain compatability with an exe that has already been linked to the lib without having to rebuild the exe or load the dll dynamically using LoadLibrary. In other words, is there a way to add classes and methods to a dll(but not remove any) and ensure the existing entrypoints remain the same?

Best Answer

If you export the functions from using a DEF file and manually specify the ordinals, you should be able to accomplish this.

Reference

http://msdn.microsoft.com/en-us/library/d91k01sh(VS.80).aspx

Related Topic