Hi!
I have a problem loading an image from a file for program icon.
This is the code
What's the problem?Code:wndClass.hIcon = LoadIcon(hInstance, ".\\DATA\\GRAPHICS\\plus.ico");
Printable View
Hi!
I have a problem loading an image from a file for program icon.
This is the code
What's the problem?Code:wndClass.hIcon = LoadIcon(hInstance, ".\\DATA\\GRAPHICS\\plus.ico");
LoadImage works for the icon, which is inside the program. But I really need to use the resources if I want to have an iconic exe file.
Thank you for your help.
You must specify the resource name of your icon then.
If your icon has an ID, use the MAKEINTRESOURCE() macro.
Yes, I know how to use resources. Thanks!