I have a program that may or may not use a piece of hardware that requires a DLL provided by the manufacturer.
If the user selects not to use/not use the hardware, how should I go about declaring/not declaring functions in the DLL?
Normally I see these declared near the top of the program, but the program will give a runtime error if it can't find the DLL.
It would be nice to not need to have the DLL around if the hardware is not being used.
If the user selects not to use/not use the hardware, how should I go about declaring/not declaring functions in the DLL?
Normally I see these declared near the top of the program, but the program will give a runtime error if it can't find the DLL.
It would be nice to not need to have the DLL around if the hardware is not being used.
Comment