MFC 调试 出问题 10
我用MFC的时候做了调试,用F9设了断点,然后按F10,后来不知怎么就跳进一个别的文档里。。。我就重新编译没问题,可是运行就出来好多错误Compiling...AFXST...
我用MFC的时候做了调试,用F9设了断点,然后按F10,后来不知怎么就跳进一个别的文档里。。。我就重新编译没问题,可是运行就出来好多错误
Compiling...
AFXSTATE.CPP
D:\VC98\MFC\SRC\AFXSTATE.CPP(118) : error C2027: use of undefined type 'COleControlLock'
d:\vc98\mfc\include\afxstat_.h(177) : see declaration of 'COleControlLock'
D:\VC98\MFC\SRC\AFXSTATE.CPP(118) : error C2227: left of '->m_pNextLock' must point to class/struct/union
D:\VC98\MFC\SRC\AFXSTATE.CPP(133) : error C2661: 'new' : no overloaded function takes 2 parameters
D:\VC98\MFC\SRC\AFXSTATE.CPP(140) : warning C4150: deletion of pointer to incomplete type '_AFX_DAO_STATE'; no destructor called
d:\vc98\mfc\include\afxstat_.h(181) : see declaration of '_AFX_DAO_STATE'
D:\VC98\MFC\SRC\AFXSTATE.CPP(175) : warning C4150: deletion of pointer to incomplete type 'CHandleMap'; no destructor called
d:\vc98\mfc\include\afxstat_.h(109) : see declaration of 'CHandleMap'
D:\VC98\MFC\SRC\AFXSTATE.CPP(176) : warning C4150: deletion of pointer to incomplete type 'CHandleMap'; no destructor called
d:\vc98\mfc\include\afxstat_.h(109) : see declaration of 'CHandleMap'
D:\VC98\MFC\SRC\AFXSTATE.CPP(177) : warning C4150: deletion of pointer to incomplete type 'CHandleMap'; no destructor called
d:\vc98\mfc\include\afxstat_.h(109) : see declaration of 'CHandleMap'
D:\VC98\MFC\SRC\AFXSTATE.CPP(178) : warning C4150: deletion of pointer to incomplete type 'CHandleMap'; no destructor called
d:\vc98\mfc\include\afxstat_.h(109) : see declaration of 'CHandleMap'
D:\VC98\MFC\SRC\AFXSTATE.CPP(179) : warning C4150: deletion of pointer to incomplete type 'CHandleMap'; no destructor called
d:\vc98\mfc\include\afxstat_.h(109) : see declaration of 'CHandleMap'
Error executing cl.exe.
jisuanqi.exe - 3 error(s), 6 warning(s)
这怎么回事啊?? 展开
Compiling...
AFXSTATE.CPP
D:\VC98\MFC\SRC\AFXSTATE.CPP(118) : error C2027: use of undefined type 'COleControlLock'
d:\vc98\mfc\include\afxstat_.h(177) : see declaration of 'COleControlLock'
D:\VC98\MFC\SRC\AFXSTATE.CPP(118) : error C2227: left of '->m_pNextLock' must point to class/struct/union
D:\VC98\MFC\SRC\AFXSTATE.CPP(133) : error C2661: 'new' : no overloaded function takes 2 parameters
D:\VC98\MFC\SRC\AFXSTATE.CPP(140) : warning C4150: deletion of pointer to incomplete type '_AFX_DAO_STATE'; no destructor called
d:\vc98\mfc\include\afxstat_.h(181) : see declaration of '_AFX_DAO_STATE'
D:\VC98\MFC\SRC\AFXSTATE.CPP(175) : warning C4150: deletion of pointer to incomplete type 'CHandleMap'; no destructor called
d:\vc98\mfc\include\afxstat_.h(109) : see declaration of 'CHandleMap'
D:\VC98\MFC\SRC\AFXSTATE.CPP(176) : warning C4150: deletion of pointer to incomplete type 'CHandleMap'; no destructor called
d:\vc98\mfc\include\afxstat_.h(109) : see declaration of 'CHandleMap'
D:\VC98\MFC\SRC\AFXSTATE.CPP(177) : warning C4150: deletion of pointer to incomplete type 'CHandleMap'; no destructor called
d:\vc98\mfc\include\afxstat_.h(109) : see declaration of 'CHandleMap'
D:\VC98\MFC\SRC\AFXSTATE.CPP(178) : warning C4150: deletion of pointer to incomplete type 'CHandleMap'; no destructor called
d:\vc98\mfc\include\afxstat_.h(109) : see declaration of 'CHandleMap'
D:\VC98\MFC\SRC\AFXSTATE.CPP(179) : warning C4150: deletion of pointer to incomplete type 'CHandleMap'; no destructor called
d:\vc98\mfc\include\afxstat_.h(109) : see declaration of 'CHandleMap'
Error executing cl.exe.
jisuanqi.exe - 3 error(s), 6 warning(s)
这怎么回事啊?? 展开
展开全部
把source files 里面的afxstart.cpp删除
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
没有定义COleControlLock这个类,或者你已经定义在别头文件里,却没有把这个头文件包含进来·~
追问
可是我调试之前是可以顺利编译运行的啊。。而且调试过程中我也没有删掉什么东西啊。。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
查看你的stdafx.h文件是否正常
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
这是编译错误,怎么会编译没有问题?
追问
不知道啊!调试之前是可以顺利编译运行的。。可是调试的时候不知道是不是方法不对,后来重新编译就通过,运行就出问题。。
追答
可以肯定是编译错误,在编译结果输出窗口双击一下编译错误的条目,VC会自动转到出错的地方,查看一下就知道。
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询