Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2007 Mar : Compiling a .rc file with version info
| Subject: | Compiling a .rc file with version info |
| Posted by: | "Mike Leftwich" (michael underscore leftwich at intuit dot com) |
| Date: | Tue, 13 Mar 2007 20:05:05 |
Greetings,
I'm trying to compile a .rc file using brcc32, and I'm having some issues. I
need to compile version info. I found an example of version information in a
few web sites, but it doesn't seem to compile correctly with brcc32, so I'm
wondering if the format is different than the Microsoft format. Here's an
example of what I'm using:
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1, 0, 0, 100
PRODUCTVERSION 1, 0, 0, 1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x9L
#else
FILEFLAGS 0x8L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "Comments", "Modified by BZCToOn's"
VALUE "CompanyName", "Syntheretix"
VALUE "FileDescription", "rcversion MFC Application"
VALUE "FileVersion", "1, 0, 0, 100"
VALUE "InternalName", "rcversion"
VALUE "LegalCopyright", "Copyleft (C) Bzc ToOn'S 2002"
VALUE "OriginalFilename", "rcversion.EXE"
VALUE "PrivateBuild", "RCVERSION-20030212_100"
VALUE "ProductName", "rcversion Application"
VALUE "ProductVersion", "1, 0, 0, 1"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
What I get in the .res file is that several of the string values are run
together, and others don't exist except as part of another value. It seems
like perhaps it's expecting more parameters on the VALUE lines than what
Microsoft expects.
Any idea what I'm doing wrong?
Thanks!
Mike