July 23rd, 2002, 10:24 PM
July 24th, 2002, 08:39 AM
that's something I"ve always wondered about...
how do you change the icon of your .exe file when you compile something?
July 24th, 2002, 02:20 PM
>> how do you change the icon of your .exe file when you compile something?
It depends on what you are using to compile your exe file.
If you're using Visual C++:
1. Go to the Resources Tab and click on the Icon folder
2. You should see an Icon called IDR_MAINFRAME. You can either choose to edit this icon or import a new one (right click on IDR_MAINFRAME to choose whichever you want to do).
3. Don't forget that there are 2 images in the default icon file (16x16 and 32x32). You can view/edit either one by selecting it in the Device combo box (Personally I think Device is a bad name for this, but that's M$ for you). You'll need to edit both images separately.
4. If you import a new image, delete the old one called IDR_MAINFRAME and rename your new image to IDR_MAINFRAME and recompile your app.
If you're using C++ Builder or Delphi:
1. Go to Project --> Options in the menu
2. In the dialog box that pops up, select the Application tab. Within it, you'll see a button that allows you to select your icon for the application.
Hope this helps.
July 26th, 2002, 09:32 AM
what if I'm compiling straight with gcc?
July 27th, 2002, 11:13 AM
Well, if you're trying to write an application for Windows (which is what these .ico files are for anyways), you're going to need a resource compiler to include icons with your application. Borland and Microsoft compilers come with a resource compiler as part of the package. I don't know if it comes with gcc on Windows. As a matter of fact, I've never seen a Windows application (with menus and forms) compiled with gcc. The only ones I've seen are command line programs (and one shoot-em-up video game that my friend wrote).
July 29th, 2002, 06:40 AM
yeah, most of my stuff is 'non-Windows' work...
but still, I'd like custom icons for vanity purposes, I guess..
I tend to shy away from big compilers because they tend to be more "C++" than "C"...