www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/12/06:55:00

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Wed, 12 May 1999 06:53:58 -0400
From: Paul Thiessen <paul AT grserv DOT med DOT jhmi DOT edu>
X-Sender: paul AT turandot DOT med DOT jhmi DOT edu
To: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: program icons and version info for Windows
In-Reply-To: <3738D61C.F8CA4A9B@ece.gatech.edu>
Message-ID: <Pine.SGI.4.10.9905120637540.78441-100000@turandot.med.jhmi.edu>
MIME-Version: 1.0

On Tue, 11 May 1999, Charles Wilson wrote:

> Mumit Khan stated that egcs-1.1.2 has a newer windres than the stock
> cygwin-20.1, but I used egcs-1.1.2 to rebuild "run" last night and had
> no luck getting VersionInfo to work. However, the next cygwin release
> will contain an even newer version of windres, and Mumit promises that
> it will create VersionInfo resources properly.

Sorry, I should have been more clear. I did actually get the version info
stuff working eventually (with egcs 1.1.2) once your message told me what
to look for, after hacking around a bit and doing by example. Tacked onto
the end of this is the .rc file I currently have. I don't know exactly
what fields are required or what some of the more obscure variables mean;
I just know that it works as-is, and doesn't if I remove some of the
obscure stuff. (The joys of programming by example w/o any sort of
documentation... :) )

 - Paul

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  Paul A.   |      paul AT grserv DOT med DOT jhmi DOT edu      |  Johns Hopkins
 Thiessen   |  http://grserv.med.jhmi.edu/~paul  |   University
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

My .rc file (some long lines may be wrapped in this message; *_VERSION
and PATCH_LEVEL #defined (as single unquoted digits) in version.h)
------------------

povchem ICON PRELOAD "povchem.ico"

#include "version.h"

#define STRINGIFY(x) STRINGIFY1(x)
#define STRINGIFY1(x) #x

1 VERSIONINFO
 FILEVERSION 	MAJOR_VERSION, MINOR_VERSION, PATCH_LEVEL, 0
 PRODUCTVERSION MAJOR_VERSION, MINOR_VERSION, PATCH_LEVEL, 0
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904b0"
        BEGIN
            VALUE "FileDescription", "PovChem\0"
            VALUE "FileVersion", STRINGIFY(MAJOR_VERSION) "."
STRINGIFY(MINOR_VERSION) "." STRINGIFY(PATCH_LEVEL) "\0"
            VALUE "LegalCopyright", "Copyright \251 1999 by Paul A.
Thiessen\0"
            VALUE "Author", "Paul A. Thiessen\0"
            VALUE "ProductName", "PovChem " STRINGIFY(MAJOR_VERSION) "."
STRINGIFY(MINOR_VERSION) "." STRINGIFY(PATCH_LEVEL) " for Windows\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END





--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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