0
votes

In a MFC windows application, the right icon is shown in the taskbar if I run the .exe file created through a release/debug build. However it doesn't show and only loads windows default icon if the application gets installed on the machine.

What is the reason behind this latter behaviour?

1
Is your application icon the first one in the app's resource file? - Logicrat
Create a brand new application with the wizard that doesn't do anything. Then copy everything from it that has to do with the icon. - Mark Ransom
Logicrat, Good point. Though it is the first item in the .rc file with the lowest id - ali
Mark: I took your suggestion. The problem lies in the application desktop shortcut icon not being set in the setup project - ali

1 Answers

0
votes

Maybe your icon resources aren't available in all sizes? I.e. the 16 px is used for the task bar, but there is a default one for the bigger size that is used for the shortcut.