delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/17/19:01:12

Date: Thu, 17 Nov 2005 16:01:01 -0800 (PST)
From: "Paul J. Lucas" <pauljlucas AT mac DOT com>
To: cygwin AT cygwin DOT com
Subject: windres VERSIONINFO not working
Message-ID: <Pine.LNX.4.63.0511171554040.1443@vgfl.cnhywyhpnf.bet>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

	I'm trying to use gcc and windres to build a small native
	Windows application.  When compiling, I'm using -mno-cygwin;
	when linking, I'm using -mwindows.  To generate a .res file from
	a .rc file, I'm using:

		windres -O coff $< $@

	in my makefile.  Everything seems to work and the generated
	executable also shows its icon as specified in the .rc file, but
	there's no version information tab in Windows explorer.  My .rc
	file is below.

	Any ideas why this doesn't work and how to make it work?

	- Paul

#include <windows.h>

My_Icon ICON MyIcon.ico

My_Version VERSIONINFO
    FILEVERSION     1,0,5,0
    PRODUCTVERSION  1,0,5,0
    FILEFLAGSMASK   0
    FILEFLAGS       0
    FILEOS          VOS__WINDOWS32
    FILETYPE        VFT_APP
    FILESUBTYPE     0
    {
        BLOCK "StringFileInfo"
        {
            BLOCK "0x040904E4"          // U.S. English + Windows
            {
                VALUE "CompanyName", "My Company, Inc."
                VALUE "FileDescription", "Best application ever"
                VALUE "FileVersion", "1.0.5"
                VALUE "InternalName", "WIdget"
                VALUE "LegalCopyright", "Copyright \251 2005 Me."
                VALUE "OriginalFilename", "Widget.exe"
                VALUE "ProductName", "Widget"
                VALUE "ProductVersion", "1.0.5"
            }
        }
        BLOCK "VarFileInfo"
        {
            VALUE "Translation", 0x0409,0
        }
    }

/* vim:set et sw=4 ts=4: */

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019