I have run into a situation which could use some help from an experienced WIN32 programmer.
I have discovered that it is mandatory that an external .DLL file actually exists if my program
has declared external functions to it, even when these functions will never be actually called.
If the .DLL file does not exist, Windows (or the RTL?) puts up a box which says that there is a component missing and my program needs to be re-installed.
My program can work with many devices, some of which have an interface via a DLL.
However, the DLL is only needed for one particular device which the user may not even have.
The way it stands, I would need to supply all DLL's for all supported devices with my software,
because if I don't, it won't even run.
I would like to be able to see which devices a user wants support for (config file), and on the basis of that load the appropriate DLL's myself.
The user would after all have the DLL for the device already, since he has it installed on his computer.
Is there a way to do this?
Any tips would be greatly appreciated.
Sander