Error C2079 ‘CMFCPropertySheet::m_wndOutlookBar’ uses undefined class ‘CMFCOutlookBar’

Severity Code Description Project File Line Suppression State
Error C2079 ‘CMFCPropertySheet::m_wndOutlookBar’ uses undefined class ‘CMFCOutlookBar’ TowerTreat c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\atlmfc\include\afxpropertysheet.h 133

 

 這個錯誤在網上沒有怎麼找到答案。仔細想了想是我在工程中TowerTreat.h添加了一個全局變量導致的,後來我把全局變量定義到TowerTreat類中,變成了一個成員變量,依然還是不行。

 

 在網上我沒有找到類似的問題,同時嘗試了一些方法也不行。於是換了一台電腦編譯,結果就發現了有個句子使用了之前定義的全局變量,但是我換了個新名字變成類成員變量卻沒有更新。

 

 把g_tower_body_scope_radius替換成tower_body_scope_radius_錯誤就沒有了

Tags: