请教:调试代码的时候出现了下面错误,该如何解决呀???
error C2039: 'DoDataExchange' : is not a member of 'CDialog'
c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2568) : see declaration of 'CDialog'
DrawLayer.cpp
\\\\DrawLayer.cpp(34) : error C2039: 'DoDataExchange' : is not a member of 'CDialog'
c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2568) : see declaration of 'CDialog'
DrawTool.cpp
\DrawTool.cpp(44) : error C2039: 'DoDataExchange' : is not a member of 'CDialog'
c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2568) : see declaration of 'CDialog'
MapLayer.cpp
MapLayer.cpp(45) : error C2039: 'DoDataExchange' : is not a member of 'CDialog'
c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2568) : see declaration of 'CDialog'
MapLayerShow.cpp
\MapLayerShow.cpp(33) : error C2039: 'DoDataExchange' : is not a member of 'CDialog'
c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2568) : see declaration of 'CDialog'
Radar.cpp
\Radar.cpp(141) : error C2039: 'DoDataExchange' : is not a member of 'CDialog'
c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2568) : see declaration of 'CDialog'
error C2039: 'DoDataExchange' : is not a member of 'CDialog'
c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2568) : see declaration of 'CDialog'
DrawLayer.cpp
\\\\DrawLayer.cpp(34) : error C2039: 'DoDataExchange' : is not a member of 'CDialog'
c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2568) : see declaration of 'CDialog'
DrawTool.cpp
\DrawTool.cpp(44) : error C2039: 'DoDataExchange' : is not a member of 'CDialog'
c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2568) : see declaration of 'CDialog'
MapLayer.cpp
MapLayer.cpp(45) : error C2039: 'DoDataExchange' : is not a member of 'CDialog'
c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2568) : see declaration of 'CDialog'
MapLayerShow.cpp
\MapLayerShow.cpp(33) : error C2039: 'DoDataExchange' : is not a member of 'CDialog'
c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2568) : see declaration of 'CDialog'
Radar.cpp
\Radar.cpp(141) : error C2039: 'DoDataExchange' : is not a member of 'CDialog'
c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2568) : see declaration of 'CDialog'
难道楼主在VIEW创建了EDIT控件?
protect:virtual void DoDataExchange(CDataExchange* pDX);
是不是被注释掉了。如果是,取消注释就好了。
应该就是这个问题。