Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

BRCC messing up Version Info

29 views
Skip to first unread message

Eddie Shipman

unread,
Mar 23, 2007, 1:33:25 PM3/23/07
to
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:


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", "StoreworksJ LegalCopyright"
VALUE "LegalCopyright", "TSW Solutions, Inc."
VALUE "LegalTrademarks", ""
VALUE "OriginalFilename", "Storeworks.exe4
ProductName"
VALUE "ProductName", "Storeworks2 ProductVersion"
VALUE "ProductVersion", "3.02.01"
VALUE "Comments", ""
}
}

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


Needless to say it looks very wierd in my Version info properties.
What am I doing wwrong?

Gordon Whittam

unread,
Mar 23, 2007, 1:01:43 PM3/23/07
to
In article <xn0f41qgd...@forums.borland.com>, Eddie Shipman
wrote:

> Needless to say it looks very wierd in my Version info properties.
> What am I doing wwrong?
>

Nul terminate your strings - "CompanyName", "TSW Solutions, Inc.\0"

and shouldn't that first line be

VS_VERSION_INFO VERSIONINFO

Gordon
--
MGCSoft Graphical and equation editors
http://www.mgcsoft.com/

Eddie Shipman

unread,
Mar 23, 2007, 2:19:50 PM3/23/07
to
> Needless to say it looks very wierd in my Version info properties.
> What am I doing wwrong?

Try finishing all your alphanumeric VALUE entries with \000

DUH!!

--

Eddie Shipman

unread,
Mar 23, 2007, 2:34:04 PM3/23/07
to
Gordon Whittam wrote:

> VS_VERSION_INFO VERSIONINFO

Any idea why my version info is not updated when I use this syntax:
{$R C:\Storeworks\version.res C:\Storeworks\version.rc}

I only changed the rc file, I did not recompile using brcc32.
I was under the impression that the IDE recompiled the resource when
using this syntax.


--

0 new messages