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

compiling and linking resource file in VS2017

Does anyone know how to set the option to compile the *.rc file when building a windows application within VS2017 and link it to the fortran object files?  My set up of VS2017 is doing everything but compiling the rc file.

0 Kudos
2 Replies
Highlighted
Black Belt

The usual cause for this is

The usual cause for this is the wrong association for .rc files. Try this:

  1. Click on the Windows Search menu and type in regedit . When Registry Editor appears, click it to open.
  2. Find HKEY_CLASSES_ROOT > .rc
  3. Look at the value of (Default). It should be something like "VisualStudio.rc.14.0" (the number indicates the VS version. If it is something else, such as Text File, right click on the .rc in the left column, then click Delete, exit the registry editor and do a Repair of Visual Studio (and maybe Intel Parallel Studio). This should fix it.

If it is already a correct value, you might try deleting and doing the repair anyway.

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

It worked!  Thank you, Steve.

It worked!  Thank you, Steve.  Happy Christmas!

 

0 Kudos