
Добавляем в проект файл resource.rc.
Иконка приложения:
// should be first in alphabetical ID list, we use "AAAAAAA" name
AAAAAAA_PROGRAM_ICON ICON "PATH_to_icon/icon_NAME.ico"
// should be first in alphabetical ID list, we use "AAAAAAA" name
AAAAAAA_PROGRAM_ICON ICON "PATH_to_icon/icon_NAME.ico"
// should be first in alphabetical ID list, we use "AAAAAAA" name AAAAAAA_PROGRAM_ICON ICON "PATH_to_icon/icon_NAME.ico"
Версия:
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
VS_VERSION_INFO VERSIONINFO
FILEVERSION RC_FILEVERSION
PRODUCTVERSION RC_FILEVERSION
FILEFLAGSMASK 0x3fL // VS_FFI_FILEFLAGSMASK
#ifdef _DEBUG
FILEFLAGS 0x1L // VS_FF_DEBUG|VS_FF_PRIVATEBUILD|VS_FF_PRERELEASE
#else
FILEFLAGS 0x0L // final version
#endif
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN // not used
{
BLOCK "StringFileInfo"
{
BLOCK "040904E4" // Lang=US English, CharSet=Windows Multilingual
{
VALUE "Build", "Jun 2008\0"
// VALUE "Comments", "Some comments.\0"
VALUE "CompanyName", "SomeCorp\0"
VALUE "Developer", "SomeCorp\0"
VALUE "FileDescription", "FileDescription\0"
VALUE "FileVersion", "1.0.0.0\0"
// VALUE "InternalName", "AppInternalName\0"
VALUE "LegalCopyright", "Copyright (C) 2008 SomeCorp\0"
VALUE "LegalTrademarks", "All rights reserved.\0"
VALUE "OriginalFilename", "filename.exe\0"
// VALUE "PrivateBuild", "\0"
VALUE "ProductName", "ProgramName\0"
VALUE "ProductVersion", "1.0.0.0\0"
// VALUE "SpecialBuild", "\0"
// VALUE "Support", "TheEXE at fake-domain.com\0"
// VALUE "Users", "Unlimited.\0"
} // BLOCK "040904E4"
} // BLOCK "StringFileInfo"
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x409, 1252 // 1252 = 0x04E4
} // BLOCK "VarFileInfo"
}
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
VS_VERSION_INFO VERSIONINFO
FILEVERSION RC_FILEVERSION
PRODUCTVERSION RC_FILEVERSION
FILEFLAGSMASK 0x3fL // VS_FFI_FILEFLAGSMASK
#ifdef _DEBUG
FILEFLAGS 0x1L // VS_FF_DEBUG|VS_FF_PRIVATEBUILD|VS_FF_PRERELEASE
#else
FILEFLAGS 0x0L // final version
#endif
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN // not used
{
BLOCK "StringFileInfo"
{
BLOCK "040904E4" // Lang=US English, CharSet=Windows Multilingual
{
VALUE "Build", "Jun 2008\0"
// VALUE "Comments", "Some comments.\0"
VALUE "CompanyName", "SomeCorp\0"
VALUE "Developer", "SomeCorp\0"
VALUE "FileDescription", "FileDescription\0"
VALUE "FileVersion", "1.0.0.0\0"
// VALUE "InternalName", "AppInternalName\0"
VALUE "LegalCopyright", "Copyright (C) 2008 SomeCorp\0"
VALUE "LegalTrademarks", "All rights reserved.\0"
VALUE "OriginalFilename", "filename.exe\0"
// VALUE "PrivateBuild", "\0"
VALUE "ProductName", "ProgramName\0"
VALUE "ProductVersion", "1.0.0.0\0"
// VALUE "SpecialBuild", "\0"
// VALUE "Support", "TheEXE at fake-domain.com\0"
// VALUE "Users", "Unlimited.\0"
} // BLOCK "040904E4"
} // BLOCK "StringFileInfo"
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x409, 1252 // 1252 = 0x04E4
} // BLOCK "VarFileInfo"
}
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US VS_VERSION_INFO VERSIONINFO FILEVERSION RC_FILEVERSION PRODUCTVERSION RC_FILEVERSION FILEFLAGSMASK 0x3fL // VS_FFI_FILEFLAGSMASK #ifdef _DEBUG FILEFLAGS 0x1L // VS_FF_DEBUG|VS_FF_PRIVATEBUILD|VS_FF_PRERELEASE #else FILEFLAGS 0x0L // final version #endif FILEOS VOS_NT_WINDOWS32 FILETYPE VFT_APP FILESUBTYPE VFT2_UNKNOWN // not used { BLOCK "StringFileInfo" { BLOCK "040904E4" // Lang=US English, CharSet=Windows Multilingual { VALUE "Build", "Jun 2008\0" // VALUE "Comments", "Some comments.\0" VALUE "CompanyName", "SomeCorp\0" VALUE "Developer", "SomeCorp\0" VALUE "FileDescription", "FileDescription\0" VALUE "FileVersion", "1.0.0.0\0" // VALUE "InternalName", "AppInternalName\0" VALUE "LegalCopyright", "Copyright (C) 2008 SomeCorp\0" VALUE "LegalTrademarks", "All rights reserved.\0" VALUE "OriginalFilename", "filename.exe\0" // VALUE "PrivateBuild", "\0" VALUE "ProductName", "ProgramName\0" VALUE "ProductVersion", "1.0.0.0\0" // VALUE "SpecialBuild", "\0" // VALUE "Support", "TheEXE at fake-domain.com\0" // VALUE "Users", "Unlimited.\0" } // BLOCK "040904E4" } // BLOCK "StringFileInfo" BLOCK "VarFileInfo" { VALUE "Translation", 0x409, 1252 // 1252 = 0x04E4 } // BLOCK "VarFileInfo" }