C++ and STL
  Common Issues
  Destructor
  regex
  string
 MFC
  CButton
  CDialog
  CEdit
  CInternetSession
  CWinThread
  CWnd
 MS VS FAQ
  Compiling, building
  Debugging
  Editor
  Settings
 Win32, API
  Console
  File System
  Graphics
  Internet functions
  Kernel objects
  Security
  Sound
  Thread, process
  Window
 Windows NT/2K*
  Logon, logoff...
  Networking
  Service Packs
 | About
  About
  Links & Freeware

Powered by
CoderTown



How to change default icon of a win32 console application?

OK, here are the essential steps:

(1) First, I assume you already have an icon, for example, test.ico Put it in the same folder as the rest of your project.
(2) Use notepad to create a new text file, with just this one line in it:

ConApp ICON test.ico

Save this file with a name e.g. test.rc in the same folder as the rest of project.
(3) In Visual Studio, open the File View on left, right-click on the "Resource Files" icon, select "Add Files to Folder" and add the test.rc file there.
(4) Recompile etc.

(c) CodeGuru.com, by kochhar

Created: 2003-06-12
Updated: 2003-06-12

Google
 
Web visualcpp.net
msdn.microsoft.com codeguru.com