I'm looking to add an icon to my Allegro game (by that I mean the picture on the taskbar/window) and it's working...kind of. I've finally figured out how it all works, and when i click my .exe in windows explorer or on my desktop it has the icon I want, but it won't appear on the window itself. Here's what I've done so far (that's worked):
1) Created a .ico file from a .png, called "icon.ico"
2) Created a file called "icon.rc" that contains the following:
ALLEGRO_ICON ICON icon.ico
3) Used Developer Command Prompt for MSVC 2013 to compile "icon.res":
rc -fo icon.res icon.rc
4) Added "icon.res" to the linker options of my project
So to clarify: Windows clearly recognises the icon, but Allegro doesn't. What's wrong?
EDIT: Seems I've got the taskbar icon showing up, at the cost of the .exe icon (but it shows it when you highlight it in windows explorer...weird). For some reason it worked once, then suddenly changed to the Allegro alligator - I have no idea how to change it back! Help me!