473,480 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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.

May 11 '06 #1
3 16172
> 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.
br**********************@hotmail.com
Remove only "_nos_pam"

May 11 '06 #2

Bruno van Dooren 寫道:
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.
br**********************@hotmail.com
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.

May 11 '06 #3
> 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/ex...alc/usingpsdk/

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"

May 11 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
50518
by: Alex Ang | last post by:
I have written the following VBScript program. It is stored into a file "map_drive.vbs". It successfully mapped to a network drive \\server1\data. Dim WshNetwork Set WshNetwork =...
5
4881
by: Sanyi | last post by:
I am having some trouble rereading a file for input. Here's the problem: I have a text file with some data (football scores) in its lines. First I read them line-by line to figure out how many...
8
5442
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
10
4415
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
1
4700
by: code_wrong | last post by:
Hi, I'm reading this: http://www.catch22.net/tuts/selfdel.asp (Self Deleting Executables) and playing around with the batch file method .. trouble is I always get a command box at the end with...
2
7546
by: unknown | last post by:
I compiled as following (e.g) cl first.cpp but following message ↓ Cannot open include file "windows.h" :Such a file or directory What compile option is used in dotnetframework SDK 1.1 or...
2
1795
by: markC2004 | last post by:
I have an MDI that I need to change to an RTF MDI. I have the include: #include "afxrich.h" Compiler always stops on the line: CRichEditView crev; Errors given: MDIDEMO.cpp(75) : error...
1
3996
by: Julian | last post by:
I am trying to compile a "legacy" code in VC++ .NET (2003) this code works fine in VC6 I get the following error: LNK1104: cannot open file 'msvcirtd.lib' i read this page :...
4
1857
by: =?Utf-8?B?VG9yZW4gVmFsb25l?= | last post by:
Was editing code, am getting the following errors } expected Type or namespace definition, or end-of-file expected Eyes crossed cannot find code below! using System; using...
0
7041
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7084
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6739
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
1
4779
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
181
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.