   Quick question about icons
  Hey everyone,I know this is probably a really simple question, but does anyone mind telling me how, or point me to resources to, how I can add an icon to the exe file.  I''m using VC++, so there''s probably some easy way to do it, but I''m new to Windows programming, plus I don''t have any of the docs installed on my system.Thanks,Joel 
  Hello Joel,There are easy ways of adding icons to exe files. Now I will post some information and code to help better the understanding of icons with Win32 programming.Now, there are several ways of adding and displaying icons so Ill show you the most effective ones that I use. First, for loading the icon, LoadIcon and for drawing the icons, DrawIcon and DrawIconEx.Those links are just showing the functions reference of how to use, now if you'd like I can write some source code in VC++ real quick that displays icons from file and from the resource. I can also give more information about the resource if needed. So please let me know if you need any thing else.- BlueDev   [edited by - BlueDev on August 1, 2003 4:51:23 PM]; It''s easy... double click on the .rc file in solution explorer, at that point you should see a tree view of all of the resources that your exe depends on in what''s called the Resource View.  Expand the icon folder.  It will have default windows icons.  You''ll want to double click on one of the IDI_ICON files.  This will open for you an icon editor if you want to draw a new icon over the existing ones.  But if you want to use an existing icon right mouse click on the icon folder and select "add resource...", chouse icon, then "import...". Once you''ve either added or created your icon it''s automatically added to the Resource.h file using the technique above.  Open your source code.  Find MyResgisterClass() function.  It has the variables hIcon and hIconSm set equal to the return value of LoadIcon() call.  Change the second parameter to the icon resource that you added in the resource file.Compile and see what happens... ;  SweetThanks guys 