Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
44 Views

error #5102 'resource .fd'

Jump to solution

hi, 

i work on a quickwin application using visual studio 2015 and intel visual fortran 2018 , i want to display a diaglog box but when i build the program it displayed me error#5102:cannot open include file 'resource.fd' , can anyone help me to fix this problem ?

Arezki Salem

0 Kudos

Accepted Solutions
Highlighted
Black Belt Retired Employee
44 Views

When you manually add a resource file to a project, rather than adding the resource directly, you need to add a custom build step to create the .fd file. The instructions for this are in Using Intel® Visual Fortran to Create and Build Windows*-Based Applications > Designing a Dialog Box Overview:

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:

  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 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.

--
Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran

View solution in original post

0 Kudos
4 Replies
Highlighted
Black Belt Retired Employee
45 Views

When you manually add a resource file to a project, rather than adding the resource directly, you need to add a custom build step to create the .fd file. The instructions for this are in Using Intel® Visual Fortran to Create and Build Windows*-Based Applications > Designing a Dialog Box Overview:

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:

  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 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.

--
Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran

View solution in original post

0 Kudos
Highlighted
Beginner
44 Views

hi Doctor when i arrived at the 4th step, i don't understand what i must do ! can you please clarify this point ? 

Arezki Salem 

0 Kudos
Highlighted
Beginner
44 Views

hi , 

finally i fixed the program , thank you DOCTOR !

Arezki Salem

0 Kudos
Highlighted
Black Belt Retired Employee
44 Views

That fourth step is just text to output when that part of the build is happening, it doesn't matter what you put there. Glad to hear you got it working.

--
Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos