DDJT

Vista does not allow me to modify the corewin_express.vsprops file and the AppSettings.htm file. How do I modify these files so I can write a Win32 application

Re: Visual C++ Express Edition VISUAL C++ AND VISTA

Bite Qiu - MSFT

Vista has a strong security enhancement so I suspect you might need to get Administrator permission to modify those files.






Re: Visual C++ Express Edition VISUAL C++ AND VISTA

DDJT

I do logon as the Adminstrator. Also, the file AppSettings.htm turns into an html file that stores an image instead of coding.



Re: Visual C++ Express Edition VISUAL C++ AND VISTA

nobugz

Try using Notepad to open and edit the files. Double-clicking them in Explorer won't work correctly.





Re: Visual C++ Express Edition VISUAL C++ AND VISTA

meatspin

You have to change the permission settings for the files. Right-click the file choose Properties, select the Security tab, click the Edit button. Here choose the Users group and select "Full Control" then "OK" or "Apply". Worked for me. I do have an administrator account, but had to do this anyway, hope it works.




Re: Visual C++ Express Edition VISUAL C++ AND VISTA

DDJT

Thank you very much, meatspin. Only thing left is that my AppSettings file is an html file and not a htm file. It was a htm file at one time, but somehow got changed, probably because of the things I tried to modify the file. Any suggestions



Re: Visual C++ Express Edition VISUAL C++ AND VISTA

DDJT

I changed the security setting on the AppSettings file and opened it with Notepad. I was able to modify the file according to the instructions. However, when I ran my first program, I get the following error message:

1>------ Build started: Project: MyFirstProgram, Configuration: Debug Win32 ------

1>Compiling...

1>MyFirstProgram.cpp

1>f:\module ii\chapter 14\myfirstprogram\myfirstprogram.cpp(1) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

1>Build log was saved at "file://f:\Module II\Chapter 14\MyFirstProgram\Debug\BuildLog.htm"

1>MyFirstProgram - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========





Re: Visual C++ Express Edition VISUAL C++ AND VISTA

Bite Qiu - MSFT

Follow step #3 in this article: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/




Re: Visual C++ Express Edition VISUAL C++ AND VISTA

DDJT

Thank you, Bite Qiu. I did add the paths to the appropriate subsections but had a couple of typos. My First Program worked as expected.

Thank you all for your help.