add a Icon to my .exe

This is a discussion on add a Icon to my .exe within the C++ Programming forums, part of the General Programming Boards category; hello guys, I've made a couple of Win32 Console Applications on my Visual C++ 6 Introductory Edition and I would ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    47

    add a Icon to my .exe

    hello guys,

    I've made a couple of Win32 Console Applications on my Visual C++ 6 Introductory Edition and I would like to add a Icon to the .exe like I do when I'm creating a MFC AppWizard(exe)..... does anyone knows how can I doo that ???

    Thanks in advance....
    I'm a person with a simple taste...
    I only like the best.

  2. #2
    Registered User harryP's Avatar
    Join Date
    Sep 2002
    Posts
    124
    Yes I certainly do. First click on "Insert" and then click "Resource...". From the Dialog Box it brings up, choose "Icon" and make your pretty little icon. Then click the "Save All" button. Save your resource script dealie like it tells you to. Then you've got to load the files into your project. Go to "Project > Add to Project > Files" and select your resource file ("Script1.rc" for example) and the icon. Then simply add
    Code:
     #include "resource.h"
    into your program (it should have automatically made that file). There could be an easier way, I don't know, but that always works for me -shrug-.

    -Edit- The icon won't show up when you run the program through Visual Studio. You need to open the program's directory, open the "Debug" folder, and then you'll see the .exe with the icon.

    Brendan
    Draco dormiens nunquam titallandus.
    Console Graphics Library: http://www.geocities.com/steve_alberto/cgl.html

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    47
    Thanks HarryP..... that solved my question, plain, simple and good explanation on what I wanted.......

    once again..... thanks.....
    I'm a person with a simple taste...
    I only like the best.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Icon Help
    By The Brain in forum Windows Programming
    Replies: 11
    Last Post: 04-05-2009, 04:06 PM
  2. Popup taskbar icon
    By CondorMan in forum Windows Programming
    Replies: 5
    Last Post: 06-11-2006, 10:14 AM
  3. Adding an Icon
    By osal in forum Windows Programming
    Replies: 4
    Last Post: 06-28-2004, 11:43 AM
  4. virtual memory program
    By funkylunch in forum Windows Programming
    Replies: 14
    Last Post: 12-04-2003, 10:15 AM

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