View Single Post
Old 04-22-2005, 02:54 PM   #1 (permalink)
QUantumAnenome
Code Monkey
 
Join Date: Mar 2005
Posts: 56
QUantumAnenome is on a distinguished road
Send a message via Yahoo to QUantumAnenome
Runtime DLL selection

I have a program that compiled with A.lib which will load A.dll. Now I want to use B.dll instead. The functions are the same. I have 2 choices, 1) recompile my app with B.lib or 2) rename B.dll as A.dll and replce the old one.

Is there a way, at runtime without needing to recompile my app, to enumerate all the dll's, and then select which one I would like to use?
Say, next year we have a new C.dll, and we want the old app to be able to use it without renaming it or recompiling.

Thanks.
QUantumAnenome is offline   Reply With Quote