Change Application Icon
-
I want to change my Win32 console Application exe Symbol by a given .bmp image.Pls guide me how to do it.Actually i am stuck up how to replcce it with my .bmp image Pls help me.Thanx in advance never say die
i don't think you can change an exe icon by a bmp... what are you trying to achieve exactly ?
TOXCCT >>> GEII power
[toxcct][VisualCalc 2.20][VCalc 3.0 soon...] -
i don't think you can change an exe icon by a bmp... what are you trying to achieve exactly ?
TOXCCT >>> GEII power
[toxcct][VisualCalc 2.20][VCalc 3.0 soon...] -
Actually I want to change the icon (symbol) of Win 32 console .exe by any .bmp or .ico.So that my symbol appears rather than the default symbol of .exe is visible Pls help me never say die -- modified at 9:43 Wednesday 15th February, 2006
If you are working with the Microsoft Visual Studio development environment, you can craete a resource file (appname.rc) and add an icon (usually IDR_MAINFRAME) in there. This icon will be used as the application's icon in explorer. Don't forget to make both the large version (32*32) and the small version (16*16), since both may be used depending on the settings of the explorer. Good luck William
-
If you are working with the Microsoft Visual Studio development environment, you can craete a resource file (appname.rc) and add an icon (usually IDR_MAINFRAME) in there. This icon will be used as the application's icon in explorer. Don't forget to make both the large version (32*32) and the small version (16*16), since both may be used depending on the settings of the explorer. Good luck William
Engberts wrote:
This icon will be used as the application's icon in explorer. Don't forget to make both the large version (32*32) and the small version (16*16), since both may be used depending on the settings of the explorer.
this is not applicable for running console application!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
-
Engberts wrote:
This icon will be used as the application's icon in explorer. Don't forget to make both the large version (32*32) and the small version (16*16), since both may be used depending on the settings of the explorer.
this is not applicable for running console application!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
Yes it is! I have a number of console applications for which I used this. In Visual Studio, you add a file to the sources folder with a name like "AppName.rc". studio will ask something like "No such file exists, add anyway?" to which you reply confirmative. Next, you must open the file (again from the sources folder) Studio will again ask: "This file does not yet exist; do you wat to create a new file?" Again, you answer "yes". Then, there will be an empty rc file and a "ResourceView" tab will be added to your project, between the "ClassView" and the "FileView" tabs. When you open the resource, it will have no resources yet, so you add an icon. You must make sure to create this icon in both 32*32 bit version as well as in 16*16 bit version. When you then recompile your console application, there will be no changes to the application itself, nor to the console window in which it runs. However, if you browse to your program using explorer, it will show you your icon next to the filename, rather than the default exe icon. In the same way, you can add version information to your program. You can view this version information by selecting "Properties" in explorer. The issue here is that both the version information as well as the icon are kept in the exe's header information, which is not loaded at runtime, but which is used by explorer to show information about the exe file. This is also the reason why you cannot use the version information from your resource at runtime in your application; it's simply never loaded! :) Regards, William
-
Yes it is! I have a number of console applications for which I used this. In Visual Studio, you add a file to the sources folder with a name like "AppName.rc". studio will ask something like "No such file exists, add anyway?" to which you reply confirmative. Next, you must open the file (again from the sources folder) Studio will again ask: "This file does not yet exist; do you wat to create a new file?" Again, you answer "yes". Then, there will be an empty rc file and a "ResourceView" tab will be added to your project, between the "ClassView" and the "FileView" tabs. When you open the resource, it will have no resources yet, so you add an icon. You must make sure to create this icon in both 32*32 bit version as well as in 16*16 bit version. When you then recompile your console application, there will be no changes to the application itself, nor to the console window in which it runs. However, if you browse to your program using explorer, it will show you your icon next to the filename, rather than the default exe icon. In the same way, you can add version information to your program. You can view this version information by selecting "Properties" in explorer. The issue here is that both the version information as well as the icon are kept in the exe's header information, which is not loaded at runtime, but which is used by explorer to show information about the exe file. This is also the reason why you cannot use the version information from your resource at runtime in your application; it's simply never loaded! :) Regards, William
Engberts wrote:
hich is not loaded at runtime, but which is used by explorer to show information about the exe file. This is also the reason why you cannot use the version information from your resource at runtime in your application; it's simply never loaded!
Do you see the Icon you create/attached with the console application in taskbar or caption of application window when you run that application!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV