Solved

BRCC32 messing up Version Info

Posted on 2007-03-23
1
779 Views
Last Modified: 2008-03-28
When compiling this RC:

1 VERSIONINFO
FILEVERSION 3,2,1,0
PRODUCTVERSION 3,2,1,0
FILEOS 0x4
FILETYPE 0x1
{
BLOCK "StringFileInfo"
{
      BLOCK "040904E4"
      {
            VALUE "CompanyName", "TSW Solutions, Inc."
            VALUE "FileDescription", "Storeworks"
            VALUE "FileVersion", "3.2.1.0"
            VALUE "InternalName", "Storeworks"
            VALUE "LegalCopyright", "TSW Solutions, Inc."
            VALUE "LegalTrademarks", ""
            VALUE "OriginalFilename", "Storeworks.exe"
            VALUE "ProductName", "Storeworks"
            VALUE "ProductVersion", "3.02.01"
            VALUE "Comments", ""
      }
}

BLOCK "VarFileInfo"
{
      VALUE "Translation", 0x0409 0x04E4
}
}

I'm getting this result in the RES file (opened in ResHacker):


1 VERSIONINFO
FILEVERSION 3,2,1,0
PRODUCTVERSION 3,2,1,0
FILEOS 0x4
FILETYPE 0x1
{
BLOCK "StringFileInfo"
{
      BLOCK "040904E4"
      {
            VALUE "CompanyName", "TSW Solutions, Inc."
            VALUE "FileDescription", "Storeworks.FileVersion"
            VALUE "FileVersion", "3.2.1.0"
            VALUE "InternalName", "StoreworksJLegalCopyright"
            VALUE "LegalCopyright", "TSW Solutions, Inc."
            VALUE "LegalTrademarks", ""
            VALUE "OriginalFilename", "Storeworks.exe4
ProductName"
            VALUE "ProductName", "Storeworks2ProductVersion"
            VALUE "ProductVersion", "3.02.01"
            VALUE "Comments", ""
      }
}

BLOCK "VarFileInfo"
{
      VALUE "Translation", 0x0409 0x04E4
}
}

I have no idea what those  chars are or where they are coming from.
Needless to say it looks very wierd in my Version info properties when selecting Properties
from Windows Explorer. What am I doing wrong?
0
Comment
Question by:EddieShipman
1 Comment
 
LVL 3

Accepted Solution

by:
jgbustos earned 500 total points
ID: 18781240
Hi,

Try finishing all your alphanumeric VALUE entries with \000

1 VERSIONINFO
FILEVERSION 3,2,1,0
PRODUCTVERSION 3,2,1,0
FILEOS 0x4
FILETYPE 0x1
{
BLOCK "StringFileInfo"
{
       BLOCK "040904E4"
       {
               VALUE "CompanyName", "TSW Solutions, Inc.\000"
               VALUE "FileDescription", "Storeworks\000"
               VALUE "FileVersion", "3.2.1.0\000"
               VALUE "InternalName", "Storeworks\000"
               VALUE "LegalCopyright", "TSW Solutions, Inc.\000"
               VALUE "LegalTrademarks", ""
               VALUE "OriginalFilename", "Storeworks.exe\000"
               VALUE "ProductName", "Storeworks\000"
               VALUE "ProductVersion", "3.02.01\000"
               VALUE "Comments", ""
       }
}

BLOCK "VarFileInfo"
{
       VALUE "Translation", 0x0409 0x04E4
}
}
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question