tags:

views:

39

answers:

0

So added a resource.rc and a resource.h file to my project.

resource.rc has #include "resource.h" IDI_MYICON ICON "my_icon.ico"

and resource.h has #define IDI_MYICON 201

wincl.hIcon = LoadIcon (GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_MYICON));
wincl.hIconSm = (HICON) LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_MYICON),     IMAGE_ICON, 16, 16 ,0);

im getting an compiler error reading "[resource error] my_icon.ico read 2440 returned 2439"

also im teaching myself this API. is there any good resources online? the forgers win32 API tutorial is good but doesnt explain much.