- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know. Please attach a zip of the buildlog.htm from the Debug (or Release) folder.
- 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 - 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- 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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- 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
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'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

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