- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
xxx\vc\atlmfc\include\atlcore.h(638):错误 C2039:“SetDefaultDllDirectories”:不是“全局命名空间”的成员
#ifndef _USING_V110_SDK71_
// the LOAD_LIBRARY_SEARCH_SYSTEM32 flag for LoadLibraryExW is only supported if the DLL-preload fixes are installed, so
// use LoadLibraryExW only if SetDefaultDllDirectories is available (only on Win8, or with KB2533623 on Vista and Win7)...
IFDYNAMICGETCACHEDFUNCTION(L"kernel32.dll", SetDefaultDllDirectories, pfSetDefaultDllDirectories)
{
return(::LoadLibraryExW(pszLibrary, NULL, LOAD_LIBRARY_SEARCH_SYSTEM32));
}
#endif
最佳答案
您必须确保在您的项目属性中定义了“_USING_V110_SDK71_”。 Visual Studio 会自动为您定义它。它通常不会“出现”,因为“从父级或项目默认值继承”未选中。
我发现当从旧的 atl 项目升级时,stdafx.cpp 出于某种原因未勾选“继承自父级或项目默认值”是很常见的。
您应该检查项目设置以及各个 stdafx.cpp 文件设置,以确定在预处理器定义中是否选中了“从父项或项目默认值继承”复选框。在某些情况下,会检查项目文件的预处理器定义对话框,但不会检查特定 stdafx.cpp 文件的预处理器定义对话框。
关于mfc - 错误 C2039 : “SetDefaultDllDirectories” :is not a member of global namespace,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16698882/
我最近在一个曾经运行良好的程序中遇到了问题。我追踪到以下代码: using System.Drawing; using System.Runtime.InteropServices; namespac
xxx\vc\atlmfc\include\atlcore.h(638):错误 C2039:“SetDefaultDllDirectories”:不是“全局命名空间”的成员 #ifndef _USIN
将 C++ 项目从 VS10 升级到 VS13 后,我遇到了 3 个错误: C:\Program Files\Microsoft Visual Studio 12.0\VC\atlmfc\includ
我是一名优秀的程序员,十分优秀!