我正在将一个解决方案从Visual Studio6.0迁移到Visual c++ 2013。在解决了解决方案中的许多问题后,我在windows sdk header afxdisp.h中遇到了以下错误:
error C2872: 'COleDateTime': ambiguous symbol
我的项目使用COleDateTime的方式如下:
在Date.h中:class COleDateTime;
在Date.cpp中:
#include <afxdisp.h> #include <streams.h> #include <Date.h>
正如我所说的,在afxdisp.h中标记了错误C2872。你对此有什么解决方案吗?
发布于 2016-01-13 20:26:05
已解决!两个.h文件中存在#include <afxdisp.h>语句。我从其中一个头文件中删除了#include,现在一切正常了。
https://stackoverflow.com/questions/34762289
复制相似问题