program icons and version info for Windows

Paul Thiessen paul@grserv.med.jhmi.edu
Mon May 31 21:10:00 GMT 1999


On 1999年5月11日, 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@grserv.med.jhmi.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", "PovChem0円"
 VALUE "FileVersion", STRINGIFY(MAJOR_VERSION) "."
STRINGIFY(MINOR_VERSION) "." STRINGIFY(PATCH_LEVEL) "0円"
 VALUE "LegalCopyright", "Copyright 251円 1999 by Paul A.
Thiessen0円"
 VALUE "Author", "Paul A. Thiessen0円"
 VALUE "ProductName", "PovChem " STRINGIFY(MAJOR_VERSION) "."
STRINGIFY(MINOR_VERSION) "." STRINGIFY(PATCH_LEVEL) " for Windows0円"
 END
 END
 BLOCK "VarFileInfo"
 BEGIN
 VALUE "Translation", 0x409, 1200
 END
END
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /