i have read abt this frm the forum and followed steps given in the following link :
http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx
but still i am getting the following error:
1>c:\documents and settings\administrator\my documents\visual studio 2005\projects\test\test\stdafx.h(28) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
i am missing something . plz help

win32 application
Swamy Kanakala MSFT
this is my psdk location:
C:\Program Files\Microsoft Platform SDK
i have added to lib directories as :
C:\Program Files\Microsoft Platform SDK R2\lib
but there is no option like include directory but i can find exclude directory
tried to build the win32 window application still i am getting same error
Eron Wright
great it is working now thanx for help
Chris Holland
Meenakshi
i am getting
1>msvcirtd.lib(msvcirtd.dll) : fatal error LNK1112: module machine type 'IA64' conflicts with target machine type 'X86'
when i searched for that file i can get only 2 files under following folder
C:\Program Files\Microsoft Platform SDK\Lib\AMD64
C:\Program Files\Microsoft Platform SDK\Lib\IA64
i tried to add 2nd location to option->VC++ directories->include lib->
but still i am getting this error
do i need to have same file under x86.
stillmidnight
Ikhwan Nurdin
or
Seb MARTY
lostagent2
i used the same code :
Tom Robson
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
to include directories, and
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
to lib directories.
(Assuming that C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\ is the directory where you installed PSDK)
MartinHowe
Try and go to the Tools menu, then select Options. In the Options dialog, select Projects, then VC++ directories. In the upper right there's a drop down list labeled "Show directories for". In the drop down list, select the "Include files" item. This shows you where VC++ looks for include files.
Do a search for windows.h in the "C:\Program Files\" directory and add the directory in which windows.h resides to the include list.
Adam Prout
when i used :
std::cout << "Hello, world!\n"
i am getting following error:
error C2653: 'std' : is not a class or namespace name
then when i tried :
using namespace std;
i am getting following error:
error C2871: 'std' : a namespace with this name does not exist
kline
#include<iostream>
but now i am getting this error
1>c:\documents and settings\administrator\my documents\visual studio 2005\projects\test\test\test.cpp(6) : error C2065: 'cout' : undeclared identifier
it is not taking the iostream header now
Gary Kratkin
C:\Program Files\Microsoft Platform SDK\Lib\AMD64
C:\Program Files\Microsoft Platform SDK\Lib\IA64
i tried to add 2nd location to option->VC++ directories->include lib->
but still i am getting this error
chrissto
This worked for me. Though novice myself and not that I can help much but which machine are you running on (x86 or something else)
Zoran K.