I'm writing code that requires a DLL that exists only on Windows 7. However, I will deploy to older platforms, so I want to use the DLL if it exists on the user's system.
I can use LoadLibrary() to get a HMODULE, and GetProcAddress() to get methods from that HMODULE. This allows me to get the method, and it will still compile. But how do I declare a type of struct or class defined in that DLL and have it compile?