Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Mon, 29 Oct 2007 08:08:00 -0700,    group: microsoft.public.win32.programmer.directx.sdk        back       


vc++ 2005 express and can't find windows.h !?!   
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!
date: Mon, 29 Oct 2007 08:08:00 -0700   author:   huh?

Re: vc++ 2005 express and can't find windows.h !?!   
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
date: Mon, 29 Oct 2007 09:33:20 -0600   author:   The March Hare [MVP]

Re: vc++ 2005 express and can't find windows.h !?!   
'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!
>
date: Mon, 29 Oct 2007 11:35:26 -0600   author:   Sheng Jiang[MVP] uss

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us