This may be a bit of a newbie question, but I just don't know! To use a function in a DLL that might not be present on the system I can use LoadLibrary and then GetProcAddress. But how can I do the same thing for a COM interface? I can include the header file for the declarations, IID's, and so on.. but I don't want to link against the accompanying library using #pragma comment(lib, "blabla.lib").
(I'm trying to use the WICImagingFactory interface, and that requires linking against windowscodecs.lib to compile)
Thanks