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

Upgraded to Visual Studio 2010

davidgraham
初学者
8,887 次查看
I've just updated to Visual Studio 2010 Full, before I was on Visual Studio 2008 shell.

With Visual Studio 2008 shell I had to use the program 'ResEdit' to edit the resouce file - to edit the dialogs etc.
With Visusal Studio 2010 full I should be able to edit the dialogs directly - how do I do this, back in VF6.6 there was a resource tab.

Also how do I get the watch window to be displayed when debugging - I can't see anything that looks like it, just an 'immediate' window.

I'm sure the answers are simple its just getting used to the new terminology.

Thanks
David
0 项奖励
79 回复数
davidgraham
初学者
2,530 次查看
Update - I've found the Watch Window, but not fow to edit the dialogs.
0 项奖励
Steven_L_Intel1
2,530 次查看
With full VS2010, and the Visual C++ component installed, you should be able to edit dialogs. You're sure you're in the VS2010 environment? Did you do a default install of VS2010 before installing Intel Fortran?
0 项奖励
davidgraham
初学者
2,530 次查看
I didn't install Visual C++ (I did install Visual Basic).
Is all I need to do is add Visusal C++?
David
0 项奖励
Steven_L_Intel1
2,530 次查看
Yes - you should have received a warning when you installed Fortran if it did not find Visual C++. I suggest that you uninstall Fortran, install the Visual C++ component, then reinstall Fortran.
0 项奖励
davidgraham
初学者
2,530 次查看
Thanks,
I removed Visual Fortran, installed C++ for Visusal Sudio 2010 and reinstalled Visual Fortran 2011.

Where do I edit the dialogs?

Should I have upgraded my Visual Fortran project again?

David

0 项奖励
Steven_L_Intel1
2,530 次查看
You should be able to just double-click on the .rc file and that should bring up the resource editor.
0 项奖励
davidgraham
初学者
2,530 次查看
When I double click on the rc file I get the mesage "fatal error RC1015: cannot open include file 'windows.h'"
0 项奖励
davidgraham
初学者
2,530 次查看
Previously when I used Vuisual Studio 2008 Express I had to use ResEdit to edit the dialogs.
I wonder if the format of the rc file is slightly different.
0 项奖励
Steven_L_Intel1
2,530 次查看
The problem now is that the folder containing the Windows SDK .h files is not in the Includes path. This ought to have been set up when Visual C++ got installed, but some customers find it didn't. Maybe the order in which you did the install contributed to the problem.

Find the folder on your system containing windows.h. It is possibly C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\ Add this to the list in Tools > Options > Intel Visual Fortran > Compilers > Includes.
0 项奖励
davidgraham
初学者
2,530 次查看
The include files are:
$(IFortInstallDir)compiler\include
$(IFortInstallDir)compiler\include\ia32
$(IFortInstallDir)mkl\include
$(VCInstallDir)atlmfc\include
$(VCInstallDir)include
$(WindowsSdkDir)include
$(FrameworkSDKDir)include

The .h files are in
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A

I'm not sure what I actually add.
0 项奖励
Steven_L_Intel1
2,530 次查看
It's the $(WindowsSdkDir) definition which is the problem. It comes from a registry entry which may not be correct. You can look at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows to see if CurrentInstallDir matches what you found above. It should. Otherwise, just add that folder to the list for Includes.
0 项奖励
davidgraham
初学者
2,530 次查看
Sorry, I've tried various combinations but still cannot get it to work.
I'm worried incase I mess someting up.

The registry entry is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows
has c:\program Files\Microsoft SDKs\Windows\v7.1
There are also directores for v6.0A, v7.0A & v7.1, they contain
c:\program Files\Microsoft SDKs\Windows\v6.0A
c:\program Files\Microsoft SDKs\Windows\v7.0A and
c:\program Files\Microsoft SDKs\Windows\v7.1 respectively

The project properties compile includes are:

$(IFortInstallDir)compiler\include
$(IFortInstallDir)compiler\include\ia32
$(IFortInstallDir)mkl\include
$(VCInstallDir)atlmfc\include
$(VCInstallDir)include
$(WindowsSdkDir)include
$(FrameworkSDKDir)include

The windows.h is in:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include

and also at

C:\Program Files\Microsoft SDKs\Windows\v7.1\Include

Maybe the registry entries should be "Program Files (x86)" rather than "Program Files".

0 项奖励
Steven_L_Intel1
2,530 次查看
The different versions of the SDK install in different places. Just put:

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include

in the Includes list in Visual Studio.
0 项奖励
davidgraham
初学者
2,530 次查看
I have tried that and I still get the same error.
0 项奖励
Steven_L_Intel1
2,530 次查看
Where do you get the error? When you try to open the resource file? This suggests to me that the registry entry for the Windows SDK is incorrect.
0 项奖励
davidgraham
初学者
2,530 次查看
I get the error when I double click in the .rc file.
I gave the registry entries in a previous reply - but there are several - local machine, current machine and different versions.
0 项奖励
Steven_L_Intel1
2,530 次查看
What do you have in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows (if you are on an x64 system)?

What about HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows ?
0 项奖励
davidgraham
初学者
2,530 次查看
Here are the entries of the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows

C:Program Files\Microsoft SDKs\Windows\v7.1\

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows

C:Program Files\Microsoft SDKs\Windows\v7.1\

0 项奖励
Steven_L_Intel1
2,530 次查看
There should be four values under that key, (Default), CurrentInstallFolder, CurrentVersion and ProductVersion.

You could try this. Uninstall Fortran. Do a "Repair" on VS2010 from Programs and Features, then reinstall Fortran. Or you can download and install a recent Windows SDK which might correct the problem.
0 项奖励
davidgraham
初学者
2,404 次查看
Yes there are 4 values:
for HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows:
Default - not set
CurrentInstallFolder : c:\programfiles\Microsoft SDKs\Windows\v7.1\
Current Version : v7.1
Product version : v6.0A

for HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows:
it is the same.

I will reinstall Fortran tomorrow unless you suggest otherwise.
Thanks


0 项奖励
回复