Re: Share .cpp and .h along projects



Doug Harrison [MVP] wrote:
__declspec(dllexport) is going to break that all the time, in a way that a COM-compatible interface (doesn't have to be COM-compliant with all the extra registry stuff) won't.

You perceive that problem only because of your beliefs concerning DLL
substitutability. If you believed that __declspec(dllexport|dllimport) of
classes is equivalent to static linking WRT compilation dependencies, you
wouldn't think you could just overwrite a DLL with a newer version.
Instead, you'd understand you need to recompile all the DLL's clients.

Actually, Ben has a point here. DLL's have long been boasted of their substitutability and "after-market support", as MSDN puts it. Without these advantages over static libs (who cares about memory or disk savings anymore) DLL's have nothing to offer.

Alex
.


Loading