Hello,

I am currently working on an MFC application which can be launched two different ways.

1. No command line arguments. The application launches and shows a dialog which lets the user select which sub-appliation to run.

2. Launched with command line argument that directs the application on which sub-app to use. No extra dialog shown to the user.

The problem I am having is this.

If the application is launched with a command line argument that states which sub application to use, everything is fine. All the icons specified in my application resources display correctly throughout the application. If however, the application is launched without command line argument to specify the sub-app, and the extra dialog is displayed to allow the user to choose mode, some icons will not show up in the rest of the application. The problem only happens in Windows XP though. Windows Vista and 7 everything is ok. Something related to the extra dialog during initialization is causing the icon resouces to not load. I was hoping someone would have an idea. I have not posted any code as I am more in search of some conceptual ideas rather than specific code. Any ideas?

Thanks