473,396 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

RC compiler issue

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
Nov 17 '05 #1
1 1178
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.
--
Martin Richter [MVP] WWJD
"In C we had to code our own bugs. In C++ we can inherit them."
FAQ : http://www.mpdvc.de
Samples: http://www.codeguru.com http://www.codeproject.com
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dbrown2 | last post by:
I'm trying to understand and document how to install pypar on Win2k. Pypar needs to be installed with some MPI library code and also needs libpython23.a and other files which are not included with...
8
by: jon morgan | last post by:
OK, I'm going to be brave. There is a bug in VS.Net 1.1 that causes random compiler errors. I have raised this issue in posts at least three time in the past couple of months without attracting...
7
by: Tao Wang | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I saw cuj's conformance roundup, but the result is quite old. I think many people like me want to know newer c++ standard conformance test...
14
by: joshc | last post by:
I'm writing some C to be used in an embedded environment and the code needs to be optimized. I have a question about optimizing compilers in general. I'm using GCC for the workstation and Diab...
6
by: David Lack | last post by:
Hi, I recently installed a 60-day trial of .NET 2003 on my development system. I made tests with previous personal projects (which compiled ok with VC6) and some open source files, and keep...
19
by: Jerry | last post by:
I managed to narrow this down to a very simple expression. try this: private void Bug() { bool b = false; Test(3, (b || b) && b && !b); } private void Works() {
12
by: Andrew Schepler | last post by:
When compiled with Visual C++ .NET 2003 (only), the program below aborts as though no matching catch clause is present. If the copy constructor of A is made public, it successfully catches the...
7
by: ndessai | last post by:
Hi All, I discovered following issue with the VC 7.1 compiler regarding the backword compatibility. I created a dll (Redirect.dll) which exposes a function and simply writes some text (say...
16
by: cyber citizen | last post by:
Hi Folks, We are encountering the following code issue on compiler susch as "xlc","gcc" but "icc" passes it successfully. Sample code: int main(void) { typedef unsigned char oratext;...
159
by: bernard | last post by:
howdy! please recommend a good c compiler. - should be small - should be fast - should come with a good ide - should be inexpensive i am using windows os.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.