compiler can't find windows.h

B

BLACKDOG157

I tried to compile an existing program (which I want to modify). The
program is written in C++. So I downloaded Microsoft's Visual C++
Express edition and I tried to compile the program. It failed to
compile, and the error I got was that "windows.h" could not be found.
I found a web page of things I was supposed to do to get the compiler
to work with win32 applications. I did all those things - installing
the Microsoft Platform SDK, updating setttings in the compiler, and
updating various files of the compiler.
But none of it helped. When I build the project, I get:

------ Build started: Project: FullDuplexFilter, Configuration: Debug
Win32 ------
Compiling...
dxstdafx.cpp
c:\dirxsdk\samples\c++\common\dxstdafx.h(43) : fatal error C1083:
Cannot open include file: 'windows.h': No such file or directory
Build log was saved at
"file://c:\dirxsdk\Samples\C++\DirectSound\FullDuplexFilter\Debug\BuildLog.htm"
FullDuplexFilter - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========

Before I spend $250 on Microsoft tech support, is there something I
should be doing that I'm not?
 
V

Vadym Stetsyak

Hello, (e-mail address removed)!

Just a hint did you update visual studion directories?

Toos->Options->Project and Solutions->VC++ Directories
There you select Include files and add the dir where your windows.h resides.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top