2016-01-13 71 views
1

我遷移從Visual C++ 6.0到Visual Studio 2013的解決方案在解決方案解決許多問題之後,我在Windows SDK的頭afxdisp.h以下錯誤stucked:的COleDateTime ambigous符號

error C2872: 'COleDateTime': ambiguous symbol

我的項目中使用COleDateTime,如:

Date.hclass COleDateTime;

Date.cpp

#include <afxdisp.h> #include <streams.h> #include <Date.h>

就像我說的,錯誤C2872在afxdisp.h被標記。 你有任何解決方案嗎?

回答

0

解決了! #include <afxdisp.h>聲明出現在兩個.h文件中。我從其中一個標題中刪除了#include,現在一切正常。