救命:
    我是一个新手,我在往一个工程里添加一个类CWzdCommandLineInfo:public CCommandLineInfo  .可是在编译的时候却出现了如下错误:Compiling...
WzdCommandLineInfo.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\a\WzdCommandLineInfo.cpp(31) : error C2039: 'messageMap' : is not a member of 'CCommandLineInfo'
        c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(3938) : see declaration of 'CCommandLineInfo'
Error executing cl.exe.
Creating browse info file...a.exe - 1 error(s), 0 warning(s)请问高手这是为何?请尽早答复,拜谢!

解决方案 »

  1.   

    与 VC 自带的 CCommandLineInfo 冲突了。
      

  2.   

    请问是怎么冲突了呢?用classwizard添加这个类的时候,从baseclass中找不到CCommandLineInfo,我就选了ccmdtarget,然后又在代码中改了,是不是这个问题?该如何解决呢?谢谢!
      

  3.   

    baseclass 显示的类少得可怜,它只列了一些易于让你重载的基类,还有很多它都没列出来
      

  4.   

    'messageMap' : is not a member of 'CCommandLineInfo'
    这句话已经说的很请粗了。
      

  5.   

    在 afxwin.h 里有关于类 CCommandLineInfo 的定义。
      

  6.   

    因为CCmdTarget有MessageMap,而CCommandLineInfo没有MessageMap。