This is perhaps not the right forum for this.... I installed VC++2005 express edition, the platform SDK, and directx august 2007 release on my windows XP SP2 laptop with the expectation of writing code that will use directx 9.0c. I installed the EmptyProject c++ sample and then tried to compile it. I get a 'fatal error c1083: cannot open include file: 'windows.h': No such file or directory'. A search for windows.h on the system finds it in 'c:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include' directory. Questions: - Why do I have 'Microsoft Platform SDK for Windows Server 2003 R2' on my laptop top? Is this okay? - Where should I be making a change in the VC++ IDE so it can find this windows.h includ file? - Should the install of VC++ 2005 express edition have taken care of this? Is there something messed up with my install? Thank you for any help / answers!
On Mon, 29 Oct 2007 08:08:00 -0700, huh? wrote: > This is perhaps not the right forum for this.... Correct. Google: "visual studio express forum" (this newsgroup is not a match). > I installed VC++2005 express edition, the platform SDK, and directx august > 2007 release on my windows XP SP2 laptop with the expectation of writing code > that will use directx 9.0c. > > I installed the EmptyProject c++ sample and then tried to compile it. I get > a 'fatal error c1083: cannot open include file: 'windows.h': No such file or > directory'. > > A search for windows.h on the system finds it in 'c:\Program Files\Microsoft > Platform SDK for Windows Server 2003 R2\Include' directory. > > Questions: > - Why do I have 'Microsoft Platform SDK for Windows Server 2003 R2' on my > laptop top? Is this okay? A. Because you installed it. B. Yes (look at the supported Windows version in its docs). > - Where should I be making a change in the VC++ IDE so it can find this > windows.h includ file? In Visual Studio it is in: Tools -> Options -> VC++ Directories -> Include files Since you're using the Express Edition, it may be different. Look in its Help file. > - Should the install of VC++ 2005 express edition have taken care of this? > Is there something messed up with my install? No idea. -- Please read this before replying: 1. Dshow & posting help: http://tmhare.mvps.org/help.htm 2. Trim & respond inline (please don't top post or snip everything) 3. Benefit others: follow up if you are helped or you found a solution
'Microsoft Platform SDK for Windows Server 2003 R2' means the latest version of Windows that the SDK supports is Windows Server 2003 R2. It support older versions like XP as well. The SDK installation should register itself to the VS IDE. Otherwise you can add the include paths manually in VC options or through the Visual Studio registration link in the start menu. To reduce download size, VC++ express editions do not include windows sdk. It seems the SDK installation failed to register itself to the VS IDE, but you can fix it easily as mentioned above. -- Sheng Jiang Microsoft MVP in VC++ "huh?" wrote in message news:07632A87-CA98-4F5E-BF61-FE3DD985944F@microsoft.com... > This is perhaps not the right forum for this.... > > I installed VC++2005 express edition, the platform SDK, and directx august > 2007 release on my windows XP SP2 laptop with the expectation of writing code > that will use directx 9.0c. > > I installed the EmptyProject c++ sample and then tried to compile it. I get > a 'fatal error c1083: cannot open include file: 'windows.h': No such file or > directory'. > > A search for windows.h on the system finds it in 'c:\Program Files\Microsoft > Platform SDK for Windows Server 2003 R2\Include' directory. > > Questions: > - Why do I have 'Microsoft Platform SDK for Windows Server 2003 R2' on my > laptop top? Is this okay? > - Where should I be making a change in the VC++ IDE so it can find this > windows.h includ file? > - Should the install of VC++ 2005 express edition have taken care of this? > Is there something messed up with my install? > > Thank you for any help / answers! >