Cannot open include file: 'windows.h': ??

  • Thread starter Thread starter Boki
  • Start date Start date
B

Boki

Dear All,

I just installed the DirectX SDK, and I install the Tutorial00 project,
I compile it, but it shows:

------ Build started: Project: Tutorial00, Configuration: Debug Win32
------
Compiling...
Tutorial00.cpp
c:\documents and settings\m0246\my documents\visual studio
projects\tutorial00\tutorial00.cpp(8) : fatal error C1083: Cannot open
include file: 'windows.h': No such file or directory
Build log was saved at "file://c:\Documents and Settings\m0246\My
Documents\Visual Studio Projects\Tutorial00\Debug\BuildLog.htm"
Tutorial00 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========

Why there is no <windows.h> ?

Best regards,
Boki.
 
I just installed the DirectX SDK, and I install the Tutorial00 project,
I compile it, but it shows:

------ Build started: Project: Tutorial00, Configuration: Debug Win32
------
Compiling...
Tutorial00.cpp
c:\documents and settings\m0246\my documents\visual studio
projects\tutorial00\tutorial00.cpp(8) : fatal error C1083: Cannot open
include file: 'windows.h': No such file or directory
Build log was saved at "file://c:\Documents and Settings\m0246\My
Documents\Visual Studio Projects\Tutorial00\Debug\BuildLog.htm"
Tutorial00 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========

Why there is no <windows.h> ?

Hello Boki,

Are you using VC2005 express?
if so, you also have to download and install the platform SDK. it is not
included by default. that is why the compiler cannot find that header file.

--

Kind regards,
Bruno.
(e-mail address removed)
Remove only "_nos_pam"
 
Bruno van Dooren 寫é“:
Hello Boki,

Are you using VC2005 express?
if so, you also have to download and install the platform SDK. it is not
included by default. that is why the compiler cannot find that header file.

--

Kind regards,
Bruno.
(e-mail address removed)
Remove only "_nos_pam"

Hi,

I have installed platform SDK, but there is still error message:

------ Build started: Project: CreateDevice, Configuration: Debug Win32
------
Compiling...
Project : error PRJ0003 : Error spawning 'cl.exe'.
Build log was saved at "file://c:\Documents and Settings\m0246\My
Documents\Visual Studio Projects\CreateDevice\Debug\BuildLog.htm"
CreateDevice - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========


Best regards,
Boki.
 
I have installed platform SDK, but there is still error message:
------ Build started: Project: CreateDevice, Configuration: Debug Win32
------
Compiling...
Project : error PRJ0003 : Error spawning 'cl.exe'.
Build log was saved at "file://c:\Documents and Settings\m0246\My
Documents\Visual Studio Projects\CreateDevice\Debug\BuildLog.htm"
CreateDevice - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========

Hi Boki,
did you follow these steps:
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/

--

Kind regards,
Bruno.
(e-mail address removed)
Remove only "_nos_pam"
 
Back
Top