在MFC中,在基于对话框的应用的界面上,放了一个webbrowers控件,在页面下载完成后,打印页面内容,代码如下:
void dlg_print::OnDocumentCompleteExplorer1(LPDISPATCH pDisp, VARIANT FAR* URL) 
{
   // TODO: Add your control notification handler code here 
   my_webbrowers.ExecWB(6,6,NULL,NULL);//打印
}这段代码的在debug版下执行正常,在realease版下执行错误.这是为什么呢?