MFC程序运行出错,请各位帮忙看一下是哪里出错了,告诉我怎么改,小弟感激不尽。
运行后不用点登陆,点“课程管理”—>“学生选课”就会出现运行错误。 由于上传附件的时候老出现上传错误,我把程序放到网络硬盘里了,下载地址是:
http://tele.126disk.com/down.aspx?down=ok&filepath=zxh0528%2fMFC%2f%d1%a7%c9%fa%b6%cb%a3%a8%d4%cb%d0%d0%b3%f6%b4%ed%a3%a9.rar
运行后不用点登陆,点“课程管理”—>“学生选课”就会出现运行错误。 由于上传附件的时候老出现上传错误,我把程序放到网络硬盘里了,下载地址是:
http://tele.126disk.com/down.aspx?down=ok&filepath=zxh0528%2fMFC%2f%d1%a7%c9%fa%b6%cb%a3%a8%d4%cb%d0%d0%b3%f6%b4%ed%a3%a9.rar
把:
m_pChoiceCourse=new CMyChildFrame();
CCreateContext context;
context.m_pNewViewClass=RUNTIME_CLASS(CChoiceCourse); //这里的CChoiceCourse是CMyChildFrame类型,不能赋给View!!
if(!m_pChoiceCourse->LoadFrame(IDR_MAINFRAME,WS_OVERLAPPEDWINDOW|FWS_PREFIXTITLE,this,&context))
return;改成:
m_pChoiceCourse=new CMyChildFrame();
CCreateContext context;
context.m_pCurrentFrame=m_pChoiceCourse;
if(!m_pChoiceCourse->LoadFrame(IDR_MAINFRAME,WS_OVERLAPPEDWINDOW|FWS_PREFIXTITLE,this,&context))
return;