locked
11280 error Microsoft Visual Studio 2010 - objidl.h RRS feed

  • Question

  • OK~~My first 2010~~

    system info
    Xp sp3 
    Microsoft DirectX SDK (August 2006)
    Visual Studio .net    2003
    Visual Studio 2005  SP1
    Visual Studio 2010 ultimate_x86_CN

    运行DirectX SDK 例题:

    \Microsoft DirectX SDK (August 2006)\Samples\C++\Direct3D\Tutorials\Tut01_CreateDevice

    1>------ 已启动生成: 项目: CreateDevice, 配置: Debug Win32 ------
    1>  CreateDevice.cpp
    1>c:\program files\microsoft sdks\windows\v7.0a\include\objidl.h(11280): error C2061: 语法错误: 标识符“__RPC__out_xcount_part”
    1>c:\program files\microsoft sdks\windows\v7.0a\include\objidl.h(11281): error C2059: 语法错误:“)”
    1>c:\program files\microsoft sdks\windows\v7.0a\include\objidl.h(11281): fatal error C1903: 无法从以前的错误中恢复;正在停止编译

     

    Saturday, June 5, 2010 4:05 AM

Answers

  • I'd suggest using the latest Direct X SDK, the August 2006 version is quite old. The same sample from the February 2010 version compiles without errors.

     

    • Marked as answer by Yi Feng Li Friday, June 11, 2010 3:04 AM
    Saturday, June 5, 2010 9:05 AM