Unknown kind of Codeview symbol

Started by leandrojardim, April 27, 2012, 11:14:50 AM

Previous topic - Next topic

leandrojardim

I cant compile this snippet:


#include <wincodec.h>

HDC foobar (void) {
HRESULT Result = 0;
IWICImagingFactory *Factory = NULL;;

CoInitialize(NULL);
Result = CoCreateInstance(&CLSID_WICImagingFactory, NULL, CLSCTX_INPROC_SERVER, &IID_IWICImagingFactory, IID_PPV_ARGS(&Factory));
};


POLINK: fatal error: Unknown kind (0x1510) of CodeView symbol in object 'windowscodecs.lib(guids.obj)'.

TimoVJL

#1
Leave that windowscodecs.lib from SDK out and use this instead:
CLSID const IID_IWICImagingFactory = {0xEC5EC8A9,0xC395,0x4314,0x9C,0x77,0x54,0xD7, 0xA9,0x35,0xFF,0x70};You can use podump.exe /GUIDS windowscodecs.lib to see those GUID/IID's.

windowscodecs.lib from WinDDK710 works with polink.exe.
http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11800
May the source be with you

leandrojardim

Wow, thanks again timo! You are really very skilled in Win32 programming! :)