Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Creating resource.fd

blwiland
Beginner
1,873 Views

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

0 Kudos
6 Replies
blwiland
Beginner
1,873 Views

Never mind. I think I found the problem.

0 Kudos
onkelhotte
New Contributor II
1,873 Views
Quoting blwiland

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

0 Kudos
aletio
Beginner
1,873 Views
I had followed these 6 steps you wrote, but got no result.
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?
0 Kudos
Steven_L_Intel1
Employee
1,873 Views
The steps shown should have worked. Please attach the .vfproj file for your project so I can look at it.
0 Kudos
aletio
Beginner
1,873 Views
The steps shown should have worked. Please attach the .vfproj file for your project so I can look at it.

Steve, thank you for so fast reply!

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!
0 Kudos
Steven_L_Intel1
Employee
1,873 Views
Glad to hear you figured it out.
0 Kudos
Reply