Dear Forum,
Newcomer here...sorry if I have posted in the wrong forum, or if this is not really about C::B.
I´m trying to grasp the Win32 API, coding under XP, using Code::Blocks IDE and the resource editor "Resource editor 1.1.4.2"
http://www.radasm.com/resed/ With the resource editor I have created a resource file containing two new icons (16x16 and 32x32) called IDI_NEWICON.
Now, renaming the .rc resource file to xrc (for use with Code::Blocks) I add this file to my Win32 project, which consists of nothing more than a window.
In the main file I change the WinMain to
wincl.hIcon = LoadIcon (hThisInstance, MAKEINTRESOURCE(IDI_NEWICON));...and the "wincl.hIconSm" accordingly.
Compiling I get the error message:
error 'IDI_NEWICON' undecleared (first use this function)I suspect that I need to add another header file or something , but what should be in it ?
Any suggestions would be appreciated
regards
t.