CGridCtrl是一个好东西,我在一个程序中使用成功了,但在另一个程序中却出错.我搞不定,需要你们的帮助,错误信息是这样的:
Need your help.I have an error when using the GridCtrl.I use it in CFormView,as a custom control.But when compile,it cause errors below,and I cannot resolve.Thank you!
GridCtrl.cpp
D:\VCProject\gridctrl_src\gridctrl.h(208) : warning C4003: not enough actual parameters for macro 'SubclassWindow'
D:\VCProject\gridctrl_src\gridctrl.h(208) : error C2629: unexpected 'int ('
D:\VCProject\gridctrl_src\gridctrl.h(208) : error C2238: unexpected token(s) preceding ';'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(121) : warning C4003: not enough actual parameters for macro 'SubclassWindow'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(121) : error C2059: syntax error : '('
D:\VCProject\GridCtrl_src\GridCtrl.cpp(122) : error C2143: syntax error : missing ';' before '{'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(123) : error C2039: 'AfxAssertFailedLine' : is not a member of 'CGridCtrl'
        D:\VCProject\gridctrl_src\gridctrl.h(197) : see declaration of 'CGridCtrl'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(123) : error C2039: 'THIS_FILE' : is not a member of 'CGridCtrl'
        D:\VCProject\gridctrl_src\gridctrl.h(197) : see declaration of 'CGridCtrl'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(123) : error C2039: '__LINE__Var' : is not a member of 'CGridCtrl'
        D:\VCProject\gridctrl_src\gridctrl.h(197) : see declaration of 'CGridCtrl'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(124) : error C2039: 'AfxThrowNotSupportedException' : is not a member of 'CGridCtrl'
        D:\VCProject\gridctrl_src\gridctrl.h(197) : see declaration of 'CGridCtrl'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(127) : error C2181: illegal else without matching if
D:\VCProject\GridCtrl_src\GridCtrl.cpp(131) : error C2039: 'pDX' : is not a member of 'CGridCtrl'
        D:\VCProject\gridctrl_src\gridctrl.h(197) : see declaration of 'CGridCtrl'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(131) : error C2039: 'm_pDlgWnd' : is not a member of 'CGridCtrl'
        D:\VCProject\gridctrl_src\gridctrl.h(197) : see declaration of 'CGridCtrl'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(131) : error C2227: left of '->GetSafeHwnd' must point to class/struct/union
D:\VCProject\GridCtrl_src\GridCtrl.cpp(391) : warning C4003: not enough actual parameters for macro 'SubclassWindow'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(391) : error C2589: '(' : illegal token on right side of '::'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(391) : warning C4091: '' : ignored on left of 'int' when no variable is declared
D:\VCProject\GridCtrl_src\GridCtrl.cpp(391) : error C2143: syntax error : missing ';' before '::'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(391) : error C2143: syntax error : missing ';' before '::'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(392) : error C2143: syntax error : missing ';' before '{'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(392) : error C2447: missing function header (old-style formal list?)
D:\VCProject\GridCtrl_src\GridCtrl.cpp(393) : warning C4003: not enough actual parameters for macro 'SubclassWindow'
D:\VCProject\GridCtrl_src\GridCtrl.cpp(4515) : error C2664: 'Show' : cannot convert parameter 4 from 'class CRect' to 'int'
        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Generating Code...
Error executing cl.exe.
Creating browse info file...Project.exe - 26 error(s), 9 warning(s)
全是CGridCtrl的错误,我查了我自己的程序,发现没有什么不对的.怎么办?