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");
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");
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)
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.
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)
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!
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)