This may be a beginner's question, but I just don't know! To use a function in a DLL that may not be available on the system, I can use LoadLibrary and then GetProcAddress . But how can I do the same for the COM interface? I can include the header file for declarations, IID, etc., but I donβt want to reference the accompanying library using #pragma comment(lib, "blabla.lib") .
(I'm trying to use the WICImagingFactory interface, and to compile it requires linking to windowscodecs.lib)
thanks
source share