NO

Author Topic: Unknown kind of Codeview symbol  (Read 3352 times)

leandrojardim

  • Guest
Unknown kind of Codeview symbol
« on: April 27, 2012, 11:14:50 AM »
I cant compile this snippet:

Code: [Select]
#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)'.

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Unknown kind of Codeview symbol
« Reply #1 on: April 27, 2012, 11:50:39 AM »
Leave that windowscodecs.lib from SDK out and use this instead:
Code: [Select]
CLSID const IID_IWICImagingFactory = {0xEC5EC8A9,0xC395,0x4314,0x9C,0x77,0x54,0xD7, 0xA9,0x35,0xFF,0x70};You can use
Code: [Select]
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
« Last Edit: April 27, 2012, 12:08:22 PM by timovjl »
May the source be with you

leandrojardim

  • Guest
Re: Unknown kind of Codeview symbol
« Reply #2 on: April 27, 2012, 12:22:16 PM »
Wow, thanks again timo! You are really very skilled in Win32 programming! :)