【问题标题】:Why can't I use <AVerCapAPI.h> in VC++ 2010?为什么我不能在 VC++ 2010 中使用 <AVerCapAPI.h>?
【发布时间】:2015-05-18 03:38:57
【问题描述】:

&lt;AVerCapAPI.h&gt; 由avermedia SDK 提供。我用的是VS2010。当我包含此标头时,它会产生许多错误,例如

116 IntelliSense: Recognition item "DWORD" is not defined   c:\program files (x86)\avercapturesdk\include\avercapapi.h  
error C4430: lost typed specification - assumed to be int。Notice: C++ do not support default-int    c:\program files (x86)\avercapturesdk\include\avercapapi.h

我该如何解决这个问题?

【问题讨论】:

    标签: c++ visual-c++ visual-c++-2010


    【解决方案1】:

    在包含标头之前声明DWORD,或包含windef.h(这是Windows 声明DWORD 的地方。

    #include <windef.h>
    #include <avercapapi.h>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-15
      • 2011-04-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-20
      • 2015-04-02
      相关资源
      最近更新 更多