Application Icons With Visual Studio 2005 Express
Hi,
This is probably a dumb question with a very easy answer, but I can't seem to figure it out:
How do I change my application's icon when using Visual Studio 2005 Express? Right now it just uses the default generic application icon ( little blue / white box ). I know in Visual Studio 6.0 you would add an icon resource, but there doesn't seem to be a way to do that with Express.
Any help would be great! Thanks!
Hi RegularKid,
In VC05 simply right click on your project in the solution explorer, "Add new Item", select "Resource" and click on "Icon". You can also add existing icons with "Add existing item". As you mentioned they'll be added to the project as a resource.
In VC05 simply right click on your project in the solution explorer, "Add new Item", select "Resource" and click on "Icon". You can also add existing icons with "Add existing item". As you mentioned they'll be added to the project as a resource.
Also I believe it's better to make the icon in a different program, like iconforge etc then add it.
I tried making my own in photoshop and importing it/copy paste it into the icon editor in VS but it never came out right and trying to import a pallet didn't seem to fix it either.
I tried making my own in photoshop and importing it/copy paste it into the icon editor in VS but it never came out right and trying to import a pallet didn't seem to fix it either.
Hmmm. Using Visual Studio Express, the option for "Add -> Resource..." is greyed out. Any ideas as to why?
Quote:Original post by RegularKidThe resource editor isn't included in the Express version of Visual Studio 2005. You'll have to edit the resource script yourself.
Hmmm. Using Visual Studio Express, the option for "Add -> Resource..." is greyed out. Any ideas as to why?
Here's my resource.rc:
// Microsoft Visual C++ generated resource script.//#include "resource.h"#define APSTUDIO_READONLY_SYMBOLS///////////////////////////////////////////////////////////////////////////////// Generated from the TEXTINCLUDE 2 resource.//#include "afxres.h"/////////////////////////////////////////////////////////////////////////////#undef APSTUDIO_READONLY_SYMBOLS/////////////////////////////////////////////////////////////////////////////// English (U.K.) resources#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)#ifdef _WIN32LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK#pragma code_page(1252)#endif //_WIN32#ifdef APSTUDIO_INVOKED///////////////////////////////////////////////////////////////////////////////// TEXTINCLUDE//1 TEXTINCLUDE BEGIN "resource.h\0"END2 TEXTINCLUDE BEGIN "#include ""afxres.h""\r\n" "\0"END3 TEXTINCLUDE BEGIN "\r\n" "\0"END#endif // APSTUDIO_INVOKED///////////////////////////////////////////////////////////////////////////////// Icon//// Icon with lowest ID value placed first to ensure application icon// remains consistent on all systems.IDI_MAIN ICON "..\\..\\Resource\\Main.ico"
And resource.h:
//{{NO_DEPENDENCIES}}// Microsoft Visual C++ generated include file.// Used by resource.rc//#define IDI_MAIN 101
A lot of that can probably be ditched, but to be honest I'm not sure what...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement