C/How can i assign an icon to the executable program compiled from c code.
Expert: Narendra - 12/20/2005
Question-------------------------
Followup To
Question -
All the c programmes compiled by turbo c++, turn as dos shaped boxes icon on windows screen.
I want them to have some better icon on them (like that on the game installation files).
I tried using the programs which do strip and include icons to executables, but thay send the message "it is not a valid windows executalbe file" (though the program's are running just fine).
I would like to know how to assign the icons, and if rquired which software is required extra.
please do mention the difference between the c compiled prigram and an ordinary executable.
Answer -
I don't know, in what way C programming comes into picture here.
Looks like it is a problem with your windows OS.
I don't use windows. I use Solaris for all practicle purposes.
So, I am not sure what is the problem and what could be the solution. As I know, any icon can be changed.
I am compiling c language codes by turbo c++. And the compiled executables run properly on windows. BUt they have onlu the dos shaped icons.
Is there any difference between these executables and the normal game executables which have icons on them.?
And please do hint the c code way to include icon in programs.
AnswerC program has nothing to do with the icons.
It doesn't know what is icons!
Icon is something related to desktop programming.
Since you are using TurboC++ IDE, it is the one creating the exe and other files.
And windows will have some default icons for known file types and it is automatically linking to that.
Usually, you can change the icon by doing a right click (with mouse) on the icon, select Properties and from there you must be able to change the icon.
Since I don't have windows m/c, I cannot test what I am saying.