It can't find windows.h!

Hi All:

Volume in drive F has no label.
Volume Serial Number is 9C05-F02F

Directory of F:\CFILES~1\Windbg

05/26/2006 10:16 AM <DIR> .
05/26/2006 10:16 AM <DIR> ..
05/26/2006 10:12 AM <DIR> Debug
12/03/2003 05:46 PM 1,318 ReadMe.txt
12/25/2003 01:07 PM 312 stdafx.cpp
12/25/2003 01:03 PM 392 stdafx.h
05/26/2006 10:16 AM 0 temp.tmp
03/20/2004 11:35 PM 4,454 WindbgEx1.cpp
05/08/2006 10:59 AM 3,437 WindbgEx1.dsp
05/08/2006 11:01 AM 543 WindbgEx1.dsw
05/26/2006 09:46 AM 437,248 WindbgEx1.ncb
05/08/2006 11:01 AM 48,640 WindbgEx1.opt
05/08/2006 11:00 AM 753 WindbgEx1.plg
05/26/2006 10:02 AM 887 WindbgEx1.sln
05/26/2006 10:02 AM 4,932 WindbgEx1.vcproj
05/26/2006 10:02 AM 1,433 WindbgEx1.vcproj.USER-78F813B474.Alan.user
05/26/2006 09:26 AM 6,334 Windows.h
14 File(s) 510,683 bytes
3 Dir(s) 189,475,614,720 bytes free
Why can't it find windows.h its there.

Why do you have to look for such a basic file

Deleting intermediate and output files for project 'WindbgEx1', configuration 'Debug|Win32'

Compiling...

WindbgEx1.cpp

f:\c files\windbg\stdafx.h(11) : fatal error C1083: Cannot open include file: 'Windows.h': No such file or directory

Build log was saved at "file://f:\C files\Windbg\Debug\BuildLog.htm"

WindbgEx1 - 1 error(s), 0 warning(s)

========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========



Answer this question

It can't find windows.h!

  • pc-coholic

    You need to download the Windows Platform SDK for the Visual Studio Express edition to compile Win32 or MFC projects...

  • PDHB

    Hi S. Ali:

    I have downloaded the SDK.

    But I don't think it's doing any good.


  • JohnDurant

    In a VC2005 install, it lives in c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include. If you installed the SDK yourself, change the VC2005 setup with Tools + Options + Show all settings, Projects and Solutions, VC++ Directories, Show directories for = Include files.


  • It can't find windows.h!