Platform SDK problems (VS2005 TSfSD, March '06 PSDK (windows 2003 r2))

Hi All,

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
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 '*'

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
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

Which I think is how it should be to use the newer PSDK.

What am I doing wrong?

Thanks

Slip

[3124 byte] By [Slippyr4] at [2007-12-22]
# 1
I've

heard the rumor that the ATL version that comes with the PSDK is only

intended for 64-bit windows. Try removing c:\program

files\microsoft platform sdk\include\atl from the list of include paths.

nobugz at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ General...
# 2
Thanks. I wish they'd written that in the instructions somewhere. Or maybe even had a tool to integrate the SDK components you're interested in with Visual Studio, automagically.

Thanks again,

slip

Slippyr4 at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ General...