PDA

View Full Version : Attaching .ico files to .exe


ChrisPatuzzo
08-21-2006, 6:50 AM
Hi, how would i attach an icon file to an exe file? I wanted to make my programs look a bit better. Do i enter something into it's code or get a program to do it or something? It's written in C++ if your wondering.

Thanks in advance, Chris.

Nuts
08-21-2006, 9:17 AM
An .ico file is a windows icon as far as I know. So if you want to associate an icon with the executable or shortcut, just right click on the file, select properties, then select "change icon."

TimP
08-21-2006, 7:39 PM
Are you using Visual Studio or a command line compiler?

Nuts
08-21-2006, 8:52 PM
I'm guessing that I misunderstood the nature of the question. :)

Sikawtic
08-21-2006, 11:37 PM
I think if you do what you suggested, it only effects the shortcut image on your PC.

I believe what he wants is how to permanently associate the file with an .ico, so if others download it.. they'll have the icon as well.

ChrisPatuzzo
08-22-2006, 4:41 PM
>>>I think if you do what you suggested, it only effects the shortcut image on your PC.

I believe what he wants is how to permanently associate the file with an .ico, so if others download it.. they'll have the icon as well.<<<

Exactly, and i'm using a compiler, Borland c++ Builder X to be precise.

Any ideas guys?

King_Critter
08-22-2006, 5:00 PM
I'm not quite sure if this is what you want... But it was the closest to what I thought you wanted that I could find... http://www.free2code.net/plugins/forums/view.php?f=3&p=7774&os=0#8728

BroodKiller
08-25-2006, 4:07 PM
Duh...if you're using BCB, go Project->Options. It's right there, under "Icon" :)