Creating an icon for an executable

This is a discussion on Creating an icon for an executable within the C++ Programming forums, part of the General Programming Boards category; How would I go about putting an icon/picture for and exe file instead of that plain old blue/white dos screen ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    249

    Cool Creating an icon for an executable

    How would I go about putting an icon/picture for and exe file instead of that plain old blue/white dos screen pic? You know, like they do on commerical programs. I'm running MSVC 6.
    Thanks

  2. #2
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    in the WNDCLASS or WNDCLASSEX structure there is a param hIcon and hInconSm, just set that equal to your custom icon resource number, or call LoadIcon look it up for more info
    "only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating an Executable in runtime
    By astropirit in forum Windows Programming
    Replies: 2
    Last Post: 07-08-2009, 11:46 AM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 10:38 AM
  3. Creating Icon resource using image
    By csonx_p in forum Windows Programming
    Replies: 2
    Last Post: 06-11-2008, 02:50 AM
  4. Creating a executable file
    By stewie1986 in forum C Programming
    Replies: 8
    Last Post: 12-11-2007, 12:26 AM
  5. Change the icon on executable
    By caroundw5h in forum Windows Programming
    Replies: 4
    Last Post: 11-20-2003, 11:25 PM

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