请教:程序中加入gridctrl_demo227中的GridCtrl的代码,编译报错。
--------------------Configuration: Tci - Win32 Release--------------------
Compiling...
MainFrm.cpp
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxplex_.h(36) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxplex_.h(36) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtempl.h(577) : error C2208: '' : no members defined using this type
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtempl.h(653) : see reference to class template instantiation 'CList<TYPE,ARG_TYPE>' being compiled
Tci.cpp
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxplex_.h(36) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxplex_.h(36) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtempl.h(577) : error C2208: '' : no members defined using this type
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtempl.h(653) : see reference to class template instantiation 'CList<TYPE,ARG_TYPE>' being compiled
Generating Code...
Error executing cl.exe.
Tci.exe - 6 error(s), 0 warning(s)
编译gridctrl_demo227没问题。网上的例子。
自己的程序编译也没问题。
不知道我的工程哪儿设置有问题?
谢谢