Visual Studio <AtlImplementationDetails> IntelliSense Error
Visual Studio <AtlImplementationDetails> IntelliSense Error
我试图导入一个vssln文件,可能是使用vs2010或2008创建的VS 2013终极版。这很顺利,我可以重建这个项目。
然后我添加了opencv库,它不会编译,在atlbase.h文件中得到以下错误:
namespace __identifier("<AtlImplementationDetails>")
多次导致"IntelliSense: expected c++ Keyword"和
inline LSTATUS CRegKey::EnumKey(
_In_ DWORD iIndex,
_Out_writes_to_(*pnNameLength, *pnNameLength) _Post_z_ LPTSTR pszName,
_Inout_ LPDWORD pnNameLength,
_Out_opt_ FILETIME** pftLastWriteTime) throw()
{
FILETIME* ftLastWriteTime;
ATLASSUME(m_hKey != NULL);
if (pftLastWriteTime == NULL)
{
pftLastWriteTime = &ftLastWriteTime;
}
return ::RegEnumKeyEx(m_hKey, iIndex, pszName, pnNameLength, NULL, NULL, NULL, pftLastWriteTime);
}
多次导致"IntelliSense: FILETIME是模棱两可的"。为了解决这个问题,我将其更改为
System::Runtime::InteropServices::ComTypes::FILETIME* ftLastWriteTime;
,但这会导致以下错误:
7 IntelliSense: The Deklaration is not compatible with ""LSTATUS ATL::CRegKey::EnumKey(DWORD iIndex, LPTSTR pszName, LPDWORD pnNameLength, System::Runtime::InteropServices::ComTypes::FILETIME *pftLastWriteTime = (System::Runtime::InteropServices::ComTypes::FILETIME *)0)" (deklared in 5685 von "C:VisualStudioVCatlmfcincludeAtlBase.h")". c:VisualStudioVCatlmfcincludeatlbase.h 5826 25 Start IPC2
任何想法?
最好的,hh
确保你已经将你的OpenCV库设置为正确的Visual Studio版本。
在这种情况下,将它们从VS11更改为VS12,它将工作。你所犯的错误只会让你走上一条痛苦和困惑的道路。
相关文章:
- "error: no matching function for call to"构造函数错误
- C++,OpenCV,尝试显示图像时"OpenCV(4.3.0) Error: Assertion failed (size.width>0 && size.height>0)"此错误
- 使用 LuaBridge 将 LuaJIT 绑定到C++会导致"PANIC: unprotected error"
- OpenMP卸载说'fatal error: could not find accel/nvptx-none/mkoffload'
- 当使用带有VS2019或VSCode的虚幻引擎4.24.2时,我如何修复这些错误的Intellisense错误
- C++错误:"error: int aaa::bbb is protected within this context"
- 尝试链接我的着色器时,我收到错误代码"error c5145 must write to gl_position"
- C++,在int数组中输入字符串或字符会输出0,而不是ascii或error
- 使用 cmake 的 LLVM 构建在 tsan_libdispatch_mac.cc 期间失败; "Error: conflicting types for ..."
- C++ "error: invalid use of void expression"
- struct.error:解压缩 C++ 结构时,解包需要 288 字节的缓冲区
- 如何修复"error: ‘_1’ was not declared in this scope"?
- VSCode IntelliSense无法识别SDL框架的SDL_image扩展库
- 从不同目录执行时"symbol lookup error:",否则从构建目录执行时按预期工作
- 对象声明中的模板"error: expected expression"
- 在C++中使用 Catch 测试框架编译错误"error: expected ';' at end of declaration list"
- OpenCV 3.4.1 error readNetFromTensorflow 无法在 cv::d nn::ReadProtoFromBinaryFile 中打开 .pb
- 我正在尝试在Visual Studio 2013中编写我的第一个"Hello World"代码。为什么我会收到"IntelliSense: no operator message"和"error C2
- error C2065 and IntelliSense
- Visual Studio <AtlImplementationDetails> IntelliSense Error