I have a valid resource file, a valid icon, the icon is even attaching properly (Checked with Resource Editor) but for some reason only the EXE shows the icon, when the program is run, neither the tasbar icon, nor the window icon show the custom icon.
It seems that if you pass an argument of "zero" or "NULL" to GetModuleHandle(...) it returns a handle to the program that called it. I'm pretty sure you want a handle to your resource file, but it has been a little while since I've done this.
EDIT: Sorry about the three or four edits I did on this, I kept miss reading the write up on the GetModuleHandle(...) function.
Upon further reading I see where you got confused. What you are trying to do here is load your icon as if it is a default Windows choice but it is not and #define ing it isn't going to change that, nice try though.
Okay, I had continued on with the tutorial ( http://www.winprog.org/tutorial/start.html ) I've been using, and odd things have happend, speficically what works in one program, isn't working in another.
The resource file and header are basically the same (Except one has more stuff in it) In the newer file, it works, but in the file that this post was made for, it doesn't.
Found the issue! Apparently I need to pay more attention when copying code, as the issue was a second wc.hIconSm at the bottom of all the wc. code. However, that is there is the other programs that were working, so I know not why it only caused a problem in the one.
Nonetheless, problem solved!