473,749 Members | 2,660 Online
Bytes | Software Development & Data Engineering Community
+ 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\visua l studio
projects\tutori al00\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\Visua l Studio Projects\Tutori al00\Debug\Buil dLog.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 16191
> 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\visua l studio
projects\tutori al00\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\Visua l Studio Projects\Tutori al00\Debug\Buil dLog.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************* *********@hotma il.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\visua l studio
projects\tutori al00\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\Visua l Studio Projects\Tutori al00\Debug\Buil dLog.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************* *********@hotma il.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\Visua l Studio Projects\Create Device\Debug\Bu ildLog.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\Visua l Studio Projects\Create Device\Debug\Bu ildLog.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************* *********@hotma il.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
50587
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 = WScript.CreateObject("WScript.Network") sPwd = inputbox("Enter password") WshNetwork.MapNetworkDrive "J:", "\\server1\data", false, "xyz_net\John", sPwd Msgbox "Drives has been map successful"
5
4905
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 lines it has. Afterwards I want to read them again, and this time do some processing. However I cannot make my program do this. I tried the following: ############################ #include <iostream>
8
5478
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 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
10
4468
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 Enterplise Linux 3 ES, and applied FixPack fp5_mi00069.tar to it. After creating an instance, starting the database, creating a database, and entering the table definitions, all of which seems to work OK, I entered a tiny 8-row table and can do...
1
4731
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 the "the batch file cannot be found" message .. how can I get rid of this .. while staying with the batch file method? here is my code: /*self deleting exe*/
2
7575
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 in visual C++ toolkit2003?
2
1810
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 C2146: syntax error : missing ';' before identifier
1
4021
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 : http://support.microsoft.com/kb/q154419/
4
1874
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 System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing;
0
8997
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8833
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9389
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9335
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8257
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, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6079
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4881
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2794
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2218
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.