Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2005

Tip: Looking for answers? Try searching our database.

RC compiler issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sarabjeetd@hotmail.com - 11 Mar 2005 00:11 GMT
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
Martin Richter [MVP] - 11 Mar 2005 08:01 GMT
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      \
[quoted text clipped - 6 lines]
>             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.

Signature

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


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.