Hi! I'm trying to use the imaging library APIs but, when I try to create:

::CoCreateInstance(CLSID_ImagingFactory, NULL, CLSCTX_INPROC_SERVER, IID_IImagingFactory, (void **)&pFactory);

I get:

Error 2 error LNK2019: unresolved external symbol IID_IImagingFactory referenced in function "public: virtual void __cdecl ImageLoader::run(void)" (?run@ImageLoader@@UAAXXZ) imageloader.obj SCD

I tried to include as well:

#include <initguid.h>
#include <imgguids.h>

but I got a multiple definition. Is there any other way of defining those symbols?
Thanks!