RC compiler issue

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am using RC.exe to compile a resource file. The source file contains
version info which is missing from the output file.

The file included in the resource file is shown below :

////////////////////////////////////////////////////////////////////////////
///
//
// FILE: ver.h
// LANGUAGE: MS VisualStudio resource description (like C)
// AUTHOR: generated automatically by OvEpGenVerHeader.pl
//
// CREATED: Tue Jun 15 05:42:00 2004

#define OV_FILEVERSION_BIN 8,0,9,7
#define OV_PRODUCTVERSION_BIN 8,0,9,7

#define OV_FILEVERSION_ASCII "A.8.00.00.0\0"
#define OV_COMPONENTVERSION_ASCII "A.8.00.00.0\0"
#define OV_LEGALCOPYRIGHT "(c) Copyright 1993-2004 Hewlett-Packard
Development Company, L.P.\0"
#define OV_COMPANYNAME "Hewlett-Packard Development Company, L.P.\0"
#define OV_COMPONENTNAME "DBSPI\0"
#define OV_BUILDDATE "Tue Jun 15 05:42:00 2004\0"

// still there beside OV_COMPONENT... for downward compatability
#define OV_PRODUCTVERSION_ASCII "A.8.00.00.0\0"
#define OV_PRODUCTNAME "DBSPI_A.8.00.00.0\0"
#define OV_COMMENTS "HP OpenView Smart Plug-In for Databases\0"

#ifndef IS_PACK
#define OV_VERSIONINFO_STRINGS \
VALUE "FileVersion", OV_FILEVERSION_ASCII \
VALUE "LegalCopyright", OV_LEGALCOPYRIGHT \
VALUE "CompanyName", OV_COMPANYNAME \
VALUE "ProductName", OV_COMPONENTNAME \
VALUE "ProductVersion", OV_COMPONENTVERSION_ASCII \
VALUE "BuildDate", OV_BUILDDATE \
VALUE "Comments", "HP OpenView Smart Plug-In for Databases\0"
#endif // IS_PACK

////////////////////////////////////////////////////////////////////////////
///
// End of File: ver.h
////////////////////////////////////////////////////////////////////////////
///

The version in the exe file does not contain the String specified by
OV_FILEVERSION_ASCII.

It does contain the OV_COMMENTS and the OV_BUILDDATE .

How can i debug this problem?.

I am using the RC compiler from the MSSDK version Feb 2003.
The machine platform is Windows Server 2003 Itanium.

regards
-sarab
 
Hallo Sarab!
Hi,
I am using RC.exe to compile a resource file. The source file contains
version info which is missing from the output file.

The file included in the resource file is shown below :
[snip]

#ifndef IS_PACK
#define OV_VERSIONINFO_STRINGS \
VALUE "FileVersion", OV_FILEVERSION_ASCII \
VALUE "LegalCopyright", OV_LEGALCOPYRIGHT \
VALUE "CompanyName", OV_COMPANYNAME \
VALUE "ProductName", OV_COMPONENTNAME \
VALUE "ProductVersion", OV_COMPONENTVERSION_ASCII \
VALUE "BuildDate", OV_BUILDDATE \
VALUE "Comments", "HP OpenView Smart Plug-In for Databases\0"
#endif // IS_PACK

This is just a definition, you need a version info block in th RC file:

Something like this
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1, 6, 3, 165
PRODUCTVERSION 2004, 7, 15, 16
[snip]
END

The defines in this file might be used in this block.
 
Back
Top