很久没有用MFC编程了,最近新建了一个MFC工程,结果不能运行,估计是配置的问题,但我不知道该怎么配置。
PS:这个程序是自动生成的对话框程序,我一点都没有改动,编译连接却出现错误,然后就不知道如何解决了。~
错误提示如下:
e:\microsoft visual studio\vc98\mfc\include\afxwin.h(1160) : error C2059: syntax error : ':'
e:\microsoft visual studio\vc98\mfc\include\afxwin.h(3629) : error C2555: 'CMenu::CView::GetScrollBarCtrl' : overriding virtual function differs from 'CMenu::CWnd::GetScrollBarCtrl' only by return type or calling convention
        e:\microsoft visual studio\vc98\mfc\include\afxwin.h(1906) : see declaration of 'CWnd'
e:\microsoft visual studio\vc98\mfc\include\afxwin.h(4564) : error C2071: 'afxTraceFlags' : illegal storage class
e:\microsoft visual studio\vc98\include\commdlg.h(15) : error C2059: syntax error : 'string'
e:\microsoft visual studio\vc98\include\commdlg.h(15) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
e:\microsoft visual studio\vc98\include\richedit.h(22) : error C2059: syntax error : 'string'
e:\microsoft visual studio\vc98\include\richedit.h(22) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
e:\microsoft visual studio\vc98\mfc\include\afxdlgs.h(74) : fatal error C1903: unable to recover from previous error(s); stopping compilation
执行 cl.exe 时出错.2.exe - 1 error(s), 0 warning(s)
mfc编程