【问题标题】:Where can I find the declaration of HOST_E_CLRNOTAVAILABLE (type HRESULT) constant?在哪里可以找到 HOST_E_CLRNOTAVAILABLE(HRESULT 类型)常量的声明?
【发布时间】:2011-08-08 09:03:57
【问题描述】:

谁能帮我找到包含ExecuteInDefaultAppDomain()函数返回的HRESULT声明的头文件。编译器看不到 MSDN 中记录的值:HOST_E_CLRNOTAVAILABLEHOST_E_NOT_OWNER 等。请注意,包括 <MSCorEE.h>

【问题讨论】:

    标签: c# c++ clr msdn


    【解决方案1】:

    这些代码在 CorError.h 中。只需#include <corerror.h> 即可。

    【讨论】:

      【解决方案2】:

      它们在corerror.h 中定义。

      【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-20
      • 2017-10-08
      • 2018-05-06
      • 1970-01-01
      • 2013-09-11
      • 2021-01-18
      • 1970-01-01
      • 2015-12-04
      相关资源
      最近更新 更多