本文介绍了VS2012:c:\program files\windows kits\8.0\include\\\\objidlbase.h(6080):错误C2061:语法错误:标识符'__RPC__out_xcount_part的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在我的MFC程序中包含DirectX SDK(2008年8月)以及其他几个相同类型的错误时,我收到此错误。

I get this error when I include the DirectX SDK(August 2008) in my MFC program, along with several other errors of the same type.

正如其他主题中所建议的那样,我更改了属性页中的Include配置 - > C\C ++选项 - > General->其他包含目录为:" ; D:\Program Files \DirectX \ Include;%(AdditionalIncludeDirectories)",但它仍然给我相同的
错误

As suggested in other threads, I changed the Include configuration in Property Pages->C\C++ Options->General->Additional Include Directories as : "D:\Program Files\DirectX\Include;%(AdditionalIncludeDirectories)", however it still gives me the same error

我只需要使用DirectX 9(Windows XP兼容性),一切正常,直到我包含DirectX SDK路径。 为什么我仍然会收到此错误?

I need to use DirectX 9 only (Windows XP compatibility), and it all works fine till I include the DirectX SDK path.  Why am I still getting this error?

这是我的配置:Windows 7专业版x86,Visual Studio 2012 RTM

Here's my config : Windows 7 Professional x86, Visual Studio 2012 RTM

推荐答案

欢迎来到MSND论坛。

Welcome to the MSND forum.

根据我的理解,也许你有一个旧版本的DirectX SDK连接起来这引起了冲突。

Based on my understanding, maybe you have an older version of your DirectX SDK hooked up that was causing a conflict.

这是一个类似的线程可以帮助你:
http://connect.microsoft.com/VisualStudio/feedback/details/499940/error-c2061-syntax-error-identifier -rpc-out-xcount-part

Here is a similar thread that may help you: http://connect.microsoft.com/VisualStudio/feedback/details/499940/error-c2061-syntax-error-identifier-rpc-out-xcount-part

祝你有愉快的一天。

问候,


这篇关于VS2012:c:\program files\windows kits\8.0\include\\\\objidlbase.h(6080):错误C2061:语法错误:标识符'__RPC__out_xcount_part的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 04:36