- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Due to program mods over a period of time, the resorce.h file and resource.fd files have accumulatedconstants that are no longer used. Thought if the resource.h file was renamed Oldresource.h thefile would automatically be rebuilt, butinstead got error mesg whenVisual Studio 2003 loaded. Is there an easy method torebuild the resource.h file or is manual editing the only option? Thanks for any info.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you renamed resource.h you then had no file named resource.h. VS doesn't like that. Instead, creat an empty file of the name resource.h. If that doesn't work, copy your old file to name resource.h then remove all the equates relating to all control variables.
I ran into that very same problem a few years ago myself.
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jim, I tried both ways you suggested, but neither worked.Empty resource.h file resultedinMicrosoft Visual C++ generated resource script file error (script file hasINCLUDE resource.h atthe beginning) when VS loads. Error occurs when 1st reference to value that should be in the resource.h file is encountered.
Ifequates deletedand theresource.h file contained comments only,then VS would load without an error, but as soon as I tried to compile resource.h an error would occur in the MS generated script file.
Also the resource.fd file was deleted during one of the tries to recreate resource.h, but was able to recreate from backup.
Any comments would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As for "resource.fd", it is semi-automatically "translated" from resource.h by Intel-provided tool called deftofd. The "semi-automation" is achieved by a custom build rule on the resource.h property sheet. The build rule is created if you create the project from File/New/Project or if you converted it from CVF project; otherwise, you have to add it manually, for all configurations. The build rule is universal and it reads:
Command line: deftofd "$(InputPath)" "$(InputDir)$(InputName).fd"
Description: Generating Fortran include file...
Outputs: $(InputDir)$(InputName).fd
It possibly got lost during your cleanup attempts; basically, you don't need the backup of resource.fd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you JugoslavDujic.
Backed up resource.h and resource.fd then deleted unused values from theresource.h as yousuggested with the aid of the V.S. Symbol Dialog box. ThenI manually deleted the same values fromthe resource.fd file.Worked very well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Starting to understand. Command line was not present so will try to add. Do appreciate the information,thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tried to add the custom build rule for deftofd but do not understand how to do it. Iam usingVS C++.Net 2003 andIVF9.1.
Looked at V.S. Help for Specifying Custom Build Steps (or Rules) and it discusses the Command Line:, Description:, and Outputs: as noted above, but I didnot find the Custom Build Step folderdiscussed in V.S. Help.
The Properties Page for resource.h has only 3 tabs: Build, General, and Command Line. TheCommand Line tab looks the most promising, but there are no entries for Description: (whichapparently is posted in the output windowduring the build process) or Outputs:
Any help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Figured it out! I was right clicking on wrong Solution Explorer item (hard to do, but I managed to do it), once I right clicked on resource.h the dialog box with Command Line:, Discription:, and Outputs poped up. Very easy to do. Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve for the pointer to the IVF documentation.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page