标签: c# c++ clr msdn
请有人帮我查找头文件,其中包含ExecuteInDefaultAppDomain()函数返回的HRESULT声明。编译器没有看到MSDN中记录的值:HOST_E_CLRNOTAVAILABLE,HOST_E_NOT_OWNER等。请注意,<MSCorEE.h>已包含在内。
ExecuteInDefaultAppDomain()
HOST_E_CLRNOTAVAILABLE
HOST_E_NOT_OWNER
<MSCorEE.h>
答案 0 :(得分:13)
这些代码在CorError.h中。只需#include <corerror.h>即可使用。
#include <corerror.h>
答案 1 :(得分:4)
它们在corerror.h中定义。