VC++6.0程序运行提示内存不能为read
相同的程序,编译都能通过。但是在期望加入打印功能的上位机软件中不能运行,自己新建一个MFC\对话框加入打印功能就可以运行,跪求大神解答!voidCTestSerialPo...
相同的程序,编译都能通过。但是在期望加入打印功能的上位机软件中不能运行,自己新建一个MFC\对话框加入打印功能就可以运行,跪求大神解答!
void CTestSerialPortDlg::OnButton1()
{
// TODO: Add your control notification handler code here
CPrintFrame *pFrame = new CPrintFrame;
pFrame->m_pCallerDlg = this;
pFrame->Create(NULL,"Curve Print",WS_OVERLAPPEDWINDOW,CRect(0,0,0,0));
pFrame->m_pView->OnMyPrint();
}
void CPrintView::OnMyPrint()
{
GetParent()->ShowWindow(SW_SHOWMINIMIZED);
m_bPrint = TRUE;
CView::OnFilePrint();
} 展开
void CTestSerialPortDlg::OnButton1()
{
// TODO: Add your control notification handler code here
CPrintFrame *pFrame = new CPrintFrame;
pFrame->m_pCallerDlg = this;
pFrame->Create(NULL,"Curve Print",WS_OVERLAPPEDWINDOW,CRect(0,0,0,0));
pFrame->m_pView->OnMyPrint();
}
void CPrintView::OnMyPrint()
{
GetParent()->ShowWindow(SW_SHOWMINIMIZED);
m_bPrint = TRUE;
CView::OnFilePrint();
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询