I had trouble finding documentation for doing this. Found some other posts here, but I'm still having trouble getting this to work. Here is what I've tried:
I added the .ico file from my file system as as an icon resource to my project and am using the default ID of IDI_ICON1.
I then modified resources.h and changed the IDI_ICON1 value to be the lowest in the list (101).
In my code I'm calling LoadIcon like so:
hIcon = ::LoadIcon(NULL, MAKEINTRESOURCE(IDI_ICON1));
I then clean and build my project, but it is still using the previous IDI_EXCLAMATION icon.
Any ideas what I am missing?