I have two applications written in Visual C++, one of then is the main application, and the other is an updater for the first one. If I run the updater ithin main application directory it appears with the icon of the main application, but if I run the updater in another directory it appears with its icon.
I have check resource load and all seems to be be ok, the resource IDR_MAINFRAME exists and has the lowest id number, in fact IDR_MAINFRAME id in the updater app has a lower value than in the main one, althought that cannot be the problem. I have also check that SetIcon function is called inside updater app.
I have no idea of which causes this strange behaviour, probably is something related to resource loading but I do not find any usefull information about this.
I realize that is a very strange situation so any help is welcome.
Thank you in advance.