'How to create a .RC file to include version information & icons?
Im a bit new to this stuff. I Want to generate a .rc file that would include Version Information & Also contain Icons in it..
Version Information:
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
{
BLOCK "StringFileInfo"
{
BLOCK "040904b0"
{
VALUE "CompanyName", "JACK Inc.\0"
VALUE "FileDescription", "MyApp\0"
VALUE "FileVersion", "1.0.0.0\0"
VALUE "LegalCopyright", "© 2017 JACK Inc. All Rights Reserved\0"
VALUE "OriginalFilename", "MyApp\0"
VALUE "ProductName", "MyApp\0"
VALUE "ProductVersion", "1.0.0.0\0"
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x409, 1200
}
}
The icons Portion:
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_MYAPP_ICON ICON "icon1.ico"
IDI_MYAPP_ICON_SMALL ICON "icon2.ico"
I already have windows sdk wherein i will use the rc.exe to compile it to a .res file to be used as a Win32Resource in a csproj file . Im only confused on how to correctly script the .rc file to include both of the above contents.. Please Help...
Solution 1:[1]
Probably you can generate this.
-------VB6-------
"%ProgramFiles%\Microsoft Visual Studio\VB98\Wizards\rc.exe" /r /fo "Resources.res" "Resources.rc"
-------project.vbp-------
ResFile32="Resources.res"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Artur Mustafin |