icons for compiled .exe files

This is a discussion on icons for compiled .exe files within the C Programming forums, part of the General Programming Boards category; Is there a way to compile a console program to an exe file with a custom icon, that I create. ...

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    1

    icons for compiled .exe files

    Is there a way to compile a console program to an exe file with a custom icon, that I create. Right now when the file compiles the output is an exe file with a that empty window icon.

    I have an icon that I already made that I use for shortcuts to the file but, I want the file to contain that icon on its own.

    BTW: this is in Windows 98, but hopefully would also work in 2000,XP.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    For Windows you will want to delve into the API a bit, go to the MSDN web site and search for custom icons and it should give you plenty to work with.

    -Prelude
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    25

    what about old ass Turbo C

    Any way to do it for old Borland compilers like Turbo C?

  4. #4
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    Using the Win32 api you can, but I believe that Borland Turbo C compilers are old and not up to date.
    "only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein

  5. #5
    Registered User
    Join Date
    Mar 2002
    Posts
    17

    Lightbulb

    just use "reshacker", open ur exe and add a resource to it, select and icon, specify a name, and clikc add then windows will use that icon
    Parinoia Means Having All The Facts!

  6. #6
    Registered User
    Join Date
    Mar 2002
    Posts
    25

    or......

    or eXescope

    "eXeScope can analyze, display various information, and rewrite resources of executable files, that is, EXE, DLL, OCX, etc. without source files."

  7. #7
    Registered User
    Join Date
    Mar 2002
    Posts
    25

    ok....

    And, of course you can just make a shortcut to the .exe and change the icon to any desired .ico.

    That's what you have to do for 16-bit DOS executables.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error opening files in a different dir
    By Ozzie in forum C++ Programming
    Replies: 3
    Last Post: 10-09-2008, 06:55 AM
  2. Working with muliple source files
    By Swarvy in forum C++ Programming
    Replies: 1
    Last Post: 10-02-2008, 08:36 AM
  3. Replies: 4
    Last Post: 07-24-2008, 09:02 AM
  4. Program Deployment and DLL/OCX Files?
    By dfghjk in forum C++ Programming
    Replies: 5
    Last Post: 06-16-2008, 02:47 AM
  5. Running the application (.exe) files on other PCs
    By csonx_p in forum Windows Programming
    Replies: 11
    Last Post: 06-11-2008, 09:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21