views:

394

answers:

3

Hello friends,I want to change the default exe icon to someother icon in c/c++ do anybody know how to do that?Please help guys...

+1  A: 

Use this one: http://www.angusj.com/resourcehacker/

Since you specified that you are using VS2008 I can point you here: http://stackoverflow.com/questions/320677/how-do-i-set-the-icon-for-my-application-in-visual-studio-2008 (duplicate question)

Jack
Not really a programming solution or a C/C++ solution, but simple and to the point
Steve314
Jack i apperciate that u have replied...like steve said..its not a programming solution for it..
kiddo
A: 

On Windows, if the executable contains many icons, the 1st of them will be the default.
If you have icons resource in your programming environment, place the icon you want first in the list.

Edit: since you created an empty project, to add an icon, follow these instructions:

(as I said in my comment, I don't have VS2008, but the steps should be the same)

Menu: Insert -> Resource -> Import
Select "Icon", press the import button and select your icon file.

Now, close the icon editor, and save the resource script in the project folder.
Select "Files View" and add the resource script file in the "Resource Files".
That's it.

Nick D
am using vs2008..I do have a folder called"Resources" but there's nothing in it...
kiddo
@Rakesh, in VS you can insert resources in your project. I don't have VS2008, but it's very easy to add an icon. Did you create an empty project?
Nick D
Yes,I have created an empty project win 32 console app...If u jus give me an idea of how to do that...it wud be helpful for me
kiddo
@Rakesh, check out my edit.
Nick D
+2  A: 

Already answered.

http://stackoverflow.com/questions/72789/change-app-icon-in-visual-studio-2005

You have to place your .ico file in the resources folder first of course.

Peter Alexander