Platform SDK problems (VS2005 TSfSD, March '06 PSDK (windows 2003 r2))
I'm having trouble integrating PSDK with VC++ component of Visual Studio 2005 Team System for Software Developers.
After adding the include, lib and bin directories to the VC directories settings in VS, I can no longer successfully build VC++ applications, due to a whole bunch of ATL header problems.
For example, If I create a new MFC Dialog based app with standard settings, attempting to build yields 123 errors, the first few of which i've posted here (for brevity)
1> Rebuild All started: Project: TestBuild, Configuration: Debug Win32 If I adjust the directory order for the include directories so that the PSDK that comes with VS2005 comes first, then the solution builds ok. But otherwise, it doesn't. Here's my directory order:- C:\Program Files\Microsoft Platform SDK\Include Which I think is how it should be to use the newer PSDK. What am I doing wrong? Thanks Slip
1>Deleting intermediate and output files for project 'TestBuild', configuration 'Debug|Win32'
1>Compiling...
1>stdafx.cpp
1>c:\program files\microsoft platform sdk\include\atl\atlconv.h(459) : error C2065: 'LPCOLESTR' : undeclared identifier
1>c:\program files\microsoft platform sdk\include\atl\atlconv.h(459) : error C2146: syntax error : missing ')' before identifier 'x'
1>c:\program files\microsoft platform sdk\include\atl\atlconv.h(459) : error C2433: 'ocslen' : 'inline' not permitted on data declarations
1>c:\program files\microsoft platform sdk\include\atl\atlconv.h(459) : error C2059: syntax error : ')'
1>c:\program files\microsoft platform sdk\include\atl\atlconv.h(459) : error C2143: syntax error : missing ';' before '{'
1>c:\program files\microsoft platform sdk\include\atl\atlconv.h(459) : error C2447: '{' : missing function header (old-style formal list?)
1>c:\program files\microsoft platform sdk\include\atl\atlconv.h(460) : error C2143: syntax error : missing ';' before '*'
C:\Program Files\Microsoft Platform SDK\Include\atl
C:\Program Files\Microsoft DirectX SDK (June 2006)\Include
$(VCInstallDir)atlmfc\include
$(VCInstallDir)include
$(FrameworkSDKDir)include
$(VCInstallDir)PlatformSDK\include

