- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to re-create resource.fd from resource.h. I followed the 6 steps in the following instructions from another thread:
-------------------
Your project needs to have a step that runs deftofd to create the resource.fd. Usually this happens automatically when you add a resource file, but I have seen cases where it gets lost. Here's how to restore it (this is from the documentation discussing adding a resource file to a project):
1. Add Resource.h to your project using File>Add Existing Item...
2. Select the Resource.h file in the Solution View and the select View>Property Pages from the main menu 3. bar.
3. Set the Command Line option to use the deftofd tool by entering:
deftofd resource.h resource.fd
(For more information on the deftofd tool, see The Include (.FD and .H) Files.)
4. Set the Description option to Generating Fortran include file...
5. Set the Outputs option to resource.fd.
6. Click OK.
-----------------------
When I try to build the project, I get the following error message:
Generating Fortran include file . . .
deftofd resource.h resource.fd
fpp: fatal: can't fopen file: resource.h
Project : error PRJ0019: A tool returned an error code from "Generating Fortran include file . . ."
resource.h is included in my project so I'm not sure what the problem is. Any suggestions on what to look for to solve this?
Bruce Wiland
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Never mind. I think I found the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Never mind. I think I found the problem.
Can you postwhat had caused your problem and how you solved it? Maybe someone else has the same problem and will be thankful for your help.
Markus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A file "resource.fd" was not created from "resource.h".
Any sugestion how to fix it?
Is there any other way to create an *.fd file from *.h file?
- 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
Here I'm attaching the .vfproj file.
That's my first try to deal with applications for windows, so i have no clue what i might have done wrong. I'm trying to include a "menu" into a window that I am making in the project.
Nick.
UPD
I think I found what was the problem.
The options which must be changed in the properties, described in those 6 steps, must be activated in the 'Configuration: Release'.
At the beginning I was trying with 'Configuration: Active(debug)' and it didn't work.
Now I obtained resource.fd file succesfully.
Thank you for help anyway!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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