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

Resource compiler not working in a Visual Studio 2019 Fortran project

LeonardB
New Contributor I
2,884 Views

Hi

I’ve got a Fortran project using a resource file created in the Winteracter GUI.  Previously, I’ve been able to compile this from the Visual Studio 2019.

After some severe problems I had to re-install of Windows 10, Visual studio 2019 (now version 16.10.1) and IVF 2020 update 4.  Now, I can’t launch the resource compiler from the Fortran project as I could before.  There is no compile option when doing a right click on the .rc-file and ctrl+F7 does not work.

When starting a VS C++ project, the resource compiler is there, so it must have been installed.  What have I done wrong.

Grateful for help.

0 Kudos
1 Solution
LeonardB
New Contributor I
2,760 Views

Solution that worked for me: 

1) Uninstall Winteracter old version,

2) Install current version (v14.10)

3) At install, remember to un-check the option to associate .rc with "Winteracter resource".

Then it works as far as I've tested for now. 

Thanks, the discussion has been to a great help!

View solution in original post

8 Replies
Steve_Lionel
Honored Contributor III
2,872 Views

If in a Windows Explorer (directory) window, you right click on a .rc file and select Properties, what does it say for "Type of file" and "Opens with"? For example:

Properties windowProperties window

0 Kudos
LeonardB
New Contributor I
2,845 Views

Nothing unexpected. .rc files are associated with Visual Studio 2019.

 

 

Capture.PNG

0 Kudos
Steve_Lionel
Honored Contributor III
2,832 Views

If you create a "Windowing Application" sample project, can you compile the resource file there?

0 Kudos
LeonardB
New Contributor I
2,812 Views

Not if it is a Fortran windowing project. Yes if it is a C++ project.  If copying the Winteracter resource file to a C++ windowing project it complies.  When copying a resource file from a C++ project to the Fortran project, it does not compile.  When creating a new Fortran-Windowing project, I can't compile .rc files.

In File Explorer or Control Panel-Chose default apps by file type, .rc associates with “Resource script” and Visual Studio.

In VS, C++ project, when checking file properties, it just says “RC File”

 

Capture.PNG

In VS, Fortran project, instead it says “Wineracter resource”, “registred file type”

Capture2.PNG

 

Checking what’s in the register I got this information

Capture3.PNG

 

There are also more problems.  When trying to build with a backup of the .res file, it links OK, but the do not work as expected.  My next step will be to upgrade Winteracter to the latest version and see if that solves the problem.

 

 

0 Kudos
Steve_Lionel
Honored Contributor III
2,810 Views

Do a "repair" on Visual Studio. That should fix the .rc issue. It would seem that the Intel Fortran integration is very picky about the file type - I have seen this with NAG Fortran as well.

0 Kudos
LeonardB
New Contributor I
2,782 Views

Hi Steve,

I've done complete uninstall and reinstall of both VS and IVF, not just a repair.  No change with this.

0 Kudos
Steve_Lionel
Honored Contributor III
2,762 Views

Delete the registry entry for .rc and then do the VS repair again.

0 Kudos
LeonardB
New Contributor I
2,761 Views

Solution that worked for me: 

1) Uninstall Winteracter old version,

2) Install current version (v14.10)

3) At install, remember to un-check the option to associate .rc with "Winteracter resource".

Then it works as far as I've tested for now. 

Thanks, the discussion has been to a great help!

Reply