This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: about windres
- From: "Rupert Wood" <me at rupey dot net>
- To: "'Michael Foo'" <fsh at jhancock dot com dot my>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 11 Oct 2002 09:56:53 +0100
- Subject: RE: about windres
Michael Foo wrote:
> BLOCK "0x0409"{
:
> However, I only see the icon to my executable. But when I right-
> clicked to view the property of the executable. Under the Version
> tab of the Property, I see no info printed and totally blank.
You've confused the syntax of BLOCK: that should be
BLOCK "040904B0"
or similar: 0409 represents US English and 04B0 is 1200 decimal for
Unicode character set (default for Win32 resources).
For reference/comparison, here's a (US English) VS_VERSION_INFO block
autogenerated by MSVC6. It's not obvious to me why they've explicitly
null-terminated every string but all the .rc files I've seen do it.
#ifndef _MAC
/////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904B0"
BEGIN
VALUE "CompanyName", "\0"
VALUE "FileDescription", "Test MFC Application\0"
VALUE "FileVersion", "1, 0, 0, 1\0"
VALUE "InternalName", "Test\0"
VALUE "LegalCopyright", "Copyright (C) 2002\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "Test.EXE\0"
VALUE "ProductName", "Test Application\0"
VALUE "ProductVersion", "1, 0, 0, 1\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
#endif // !_MAC