Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Creating .fd file inside Visual Studio 2013

Carlos_S_
Beginner
4,206 Views

Dear Lionel,

In CVF (Compaq Visual Fortran), the program automatically created the resource.h and resource.fd  files when I saved the resource.rc file. Now, using Visual Studio, only the resource.h file is created when I save the resource.rc file. What procedure should I follow in order to create the resource.fd file?

Sincerely,

Carlos A Santos.

0 Kudos
15 Replies
Steven_L_Intel1
Employee
4,206 Views

It's the same as in CVF. When you create a "Windowing Application" project, this is set up for you automatically, but otherwise you have to do it manually. The steps are (from the documentation):

When you save your resource file for the first time, the resource editor also creates a Resource.h file.
This file is included by the .RC file. To create the Fortran equivalent of this file (resource.fd), do the
following:
a. Add Resource.h to your project using File>Add Existing Item...
b. Select the Resource.h file in the Solution View and then select View>Property Pages
from the main menu bar.
c.Set the Command Line option to use the deftofd tool by entering:
deftofd resource.h resource.fd
d. Set the Description option to Generating Fortran include file...
e. Set the Outputs option to resource.fd
f. Click OK

0 Kudos
Carlos_S_
Beginner
4,206 Views

Dear Lionel,

I followed your suggestion but the following error message appeared when I built the project: error PRJ0019 A tool returned an error code from "Generating Fortran include file... What was the problem?

Thank you for your support!

Carlos A Santos.

0 Kudos
Steven_L_Intel1
Employee
4,206 Views

I don't know. Please attach a zip of the buildlog.htm from the Debug (or Release) folder.

0 Kudos
Carlos_S_
Beginner
4,206 Views

Dear Lionel,

As you asked me I attached the Buildlog file to this message. I forgot to say that the project is a QuickWin application.

Thank you for your support!

Carlos A Santos.

0 Kudos
Steven_L_Intel1
Employee
4,206 Views

Thanks - did you look at it? It says:

deftofd: fatal: can't fopen file: resource.h

You need to have resource.h as a source file in the project.

0 Kudos
Carlos_S_
Beginner
4,206 Views

Dear Lionel,

I had the file added to the project. First I created the resource.rc file. Then, I saved it. After that, I added the resource.rc and resource.h files to the project. When I followed the procedure suggested I receveid the error message. What happened?

Thank you!

Carlos A Santos

0 Kudos
andrew_4619
Honored Contributor III
4,206 Views

The resource page for the .h file looks like the attached screen grab which will get the file for the project directories...

reso_page.gif

 

 

0 Kudos
Carlos_S_
Beginner
4,205 Views

In my project, the resource page is like the picture attached to this message. I didn´t understand the sintaxe in the picture that you sent. Please, could you explain it or give me any example?

Thank you for your support!

Carlos A Santos.

0 Kudos
andrew_4619
Honored Contributor III
4,206 Views

the $(path) stuff are logical variables that the studio replaces with the actual file name, project folder etc. If the file is in the project the studio knows where it is!

Just try copying exactly as is and it should work... It is best not to think too hard about such thing!

 

0 Kudos
Carlos_S_
Beginner
4,206 Views

I set the Resource.h Property Pages as you suggested but the project didn´t work. The same problem: cannot open include file resource.fd. Please, see the attached file.

 

0 Kudos
Carlos_S_
Beginner
4,206 Views

In the attached file, I don´t see an example in chapter 4 about creating dialog box inside QuickWin Applications. Is this kind of activity possible in Intel Visual Fortran? In CVF (Compaq Visual Fortran), I was able to create dialog box in QuickWin Application without problem. Could you send me any document describing the procedure to follow in order to create a dialog box in QuickWin Appliction?

Carlos. 

0 Kudos
andrew_4619
Honored Contributor III
4,206 Views

go to C:\Program Files (x86)\Intel\Composer XE 2013 SP1\Samples\en_US\Fortran  (the first part the depend on version installed...)

The is and index samples.html ....

On the other point, was the fd file made? or does that part still fail?

0 Kudos
Carlos_S_
Beginner
4,206 Views

Now the resource.fd file was created. This file is attached to this message. What is the problem now?

Thank you for your support.

Carlos A Santos. 

0 Kudos
andrew_4619
Honored Contributor III
4,206 Views

so is  C:\Users\Carlos Santos\Documents\VISUALFORTRAN\VISUALSTUDIO2013\Instructions\resource.fd this in the the same folder as the source files?

as a quick fix you could use include ' C:\Users\Carlos Santos\Documents\VISUALFORTRAN\VISUALSTUDIO2013\Instructions\resource.fd' 

 

0 Kudos
Carlos_S_
Beginner
4,206 Views

Now I was able to open the dialog box when I built the project. You said: as a quick fix. What is the other procedure that I could use in order to fix the problem?

Thank you for your support!

Carlos A Santos. 

0 Kudos
Reply