none
无法引用全局变量 RRS feed

  • 问题

  • 

    即使添加了CDocData类的头文件"docdata.h"也仍然出现如下错误:

    --------------------Configuration: EntInfoTip - Win32 Debug--------------------
    Compiling...
    EntInfoTipHandler.cpp
    E:\projects\C++\VC++6.0\ObjectARX 2002开发\Chapter05\EntInfoTip\EntInfoTipHandler.cpp(24) : error C2143: syntax error : missing ';' before '<'
    E:\projects\C++\VC++6.0\ObjectARX 2002开发\Chapter05\EntInfoTip\EntInfoTipHandler.cpp(24) : error C2143: syntax error : missing ';' before '<'
    E:\projects\C++\VC++6.0\ObjectARX 2002开发\Chapter05\EntInfoTip\EntInfoTipHandler.cpp(30) : error C2065: 'DocVars' : undeclared identifier
    E:\projects\C++\VC++6.0\ObjectARX 2002开发\Chapter05\EntInfoTip\EntInfoTipHandler.cpp(30) : error C2228: left of '.docData' must have class/struct/union type
    E:\projects\C++\VC++6.0\ObjectARX 2002开发\Chapter05\EntInfoTip\EntInfoTipHandler.cpp(30) : error C2228: left of '.m_pIPM' must have class/struct/union type
    E:\projects\C++\VC++6.0\ObjectARX 2002开发\Chapter05\EntInfoTip\EntInfoTipHandler.cpp(34) : error C2228: left of '.docData' must have class/struct/union type
    E:\projects\C++\VC++6.0\ObjectARX 2002开发\Chapter05\EntInfoTip\EntInfoTipHandler.cpp(34) : error C2228: left of '.m_pIPM' must have class/struct/union type
    E:\projects\C++\VC++6.0\ObjectARX 2002开发\Chapter05\EntInfoTip\EntInfoTipHandler.cpp(46) : error C2228: left of '.docData' must have class/struct/union type
    E:\projects\C++\VC++6.0\ObjectARX 2002开发\Chapter05\EntInfoTip\EntInfoTipHandler.cpp(46) : error C2228: left of '.m_pIPM' must have class/struct/union type
    E:\projects\C++\VC++6.0\ObjectARX 2002开发\Chapter05\EntInfoTip\EntInfoTipHandler.cpp(49) : error C2228: left of '.docData' must have class/struct/union type
    E:\projects\C++\VC++6.0\ObjectARX 2002开发\Chapter05\EntInfoTip\EntInfoTipHandler.cpp(49) : error C2228: left of '.m_pIPM' must have class/struct/union type
    Error executing cl.exe.
    Creating browse info file...

    ZffEntInfoTip.arx - 11 error(s), 0 warning(s)

    希望能有朋友帮忙看一下问题所在,万分感谢!

    2018年3月8日 9:28