From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24522 invoked by alias); 11 Oct 2002 08:57:09 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 24473 invoked from network); 11 Oct 2002 08:57:08 -0000 Received: from unknown (HELO anchor-post-35.mail.demon.net) (194.217.242.85) by sources.redhat.com with SMTP; 11 Oct 2002 08:57:08 -0000 Received: from mailgate.softwire.co.uk ([62.49.203.138] helo=polarbear) by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) id 17zvbW-0002Vo-0U; Fri, 11 Oct 2002 09:57:07 +0100 From: "Rupert Wood" To: "'Michael Foo'" Cc: Subject: RE: about windres Date: Fri, 11 Oct 2002 01:57:00 -0000 Message-ID: <616BE6A276E3714788D2AC35C40CD18D56178E@whale.softwire.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-reply-to: <616BE6A276E3714788D2AC35C40CD18D86F6EF@whale.softwire.co.uk> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-SW-Source: 2002-10/txt/msg00121.txt.bz2 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