Adding Custom Icon to VC8 Express
by Bryce "Cogburn" Weiner · in Torque Game Engine Advanced · 02/11/2007 (12:58 pm) · 3 replies
Create a file called TorqueGameEngineAdvanced.rc in your vc8 directory and place the following as its contents:
NOTE: "windows.h" is used because MFC is evil.
Change "myIcon.ico" to match your current icon file... It's best to place the icon file within the vc8 directory to keep things clean. :)
Now open the SDK in VC Express. Navigate to the TGEA build, and right click on "Source Files". Select Add->Existing Item and select your .rc file you created above.
Save, recompile and enjoy.
// Microsoft Visual C++ generated resource script.
//
#include "../engine/game/resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "windows.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h[[60c246afeac63]]"
END
2 TEXTINCLUDE
BEGIN
"#include ""windows.h""\r\n"
"[[60c246afeac63]]"
END
3 TEXTINCLUDE
BEGIN
"\r\n"
"[[60c246afeac63]]"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON1 ICON "myIcon.ico"
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKEDNOTE: "windows.h" is used because MFC is evil.
Change "myIcon.ico" to match your current icon file... It's best to place the icon file within the vc8 directory to keep things clean. :)
Now open the SDK in VC Express. Navigate to the TGEA build, and right click on "Source Files". Select Add->Existing Item and select your .rc file you created above.
Save, recompile and enjoy.
#2
As a general rule, most preexisting functionality common to a language (such as a .rc file) will still be available in "Express" versions of MS products.
The only thing that is usually removed is the GUI to implement it easily.
02/12/2007 (2:42 pm)
My pleasure. :) As a general rule, most preexisting functionality common to a language (such as a .rc file) will still be available in "Express" versions of MS products.
The only thing that is usually removed is the GUI to implement it easily.
Torque Owner Hewster
Hewsoft
came to conclusion MS had decided to be anal & not allow express users
the ability to add an icon...
I guess where there is a will there is a way.
Hewster