CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 47

Threaded View

  1. #11
    Join Date
    Jan 2008
    Location
    California, USA
    Posts
    822

    Re: How do I give my program an icon?

    Okay,

    You forgot the ICON inbetween.
    DISCARDABLE is optional and not required.

    why don't you try this?

    1. Open up a new console project.

    2. Add/Create a blank file

    3. In this new file type
    Code:
    1 ICON "icon.ico"
    4. Save this file as myresource.rc in the root directory of the project

    5. Check your project manager to see the newly added myresource.rc

    6. Build and run

    7. check your exe to see if the icon has been added.

    edit:
    Just in case, you want to replace icon.ico with the actual file name of your icon.
    To create your own icon,
    you can download icon plug-ins for photoshop. (google it)
    Last edited by potatoCode; March 21st, 2009 at 02:44 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured