程序运行时,一个很奇怪的问题,求助!
叶雨香澜 2008-04-27 08:52:55 【Debug Assertion Failed!
Program:D:\temp\最新代码4月20日晚\Debug\mynewado.exe
File:strex.cpp
Line:672
For information on how your program can cause an assertion failure,see the Visual C++ documentation on asserts.
(Press Retry to debug the application)】
这是我按下我对话框界面上的【google】按钮时出现的错误提示,编译时无出错或时警告。
我对话框界面上有三个按钮【google】、【baidu】、【dict】;他们的响应函数分别如下:
【void CMynewadoDlg::OnBaidu()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString m_website;
m_website.Format("http://www.baidu.com/s?wd=%s",m_scb);
m_ctrlWeb.Navigate(m_website,NULL,NULL,NULL,NULL);
UpdateData(TRUE);
}
void CMynewadoDlg::OnDict()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString m_website;
m_website.Format("http://www.dict.cn/search/?q=%s",m_scb);
m_ctrlWeb.Navigate(m_website,NULL,NULL,NULL,NULL);
UpdateData(TRUE);
}
void CMynewadoDlg::OnGoogle()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString m_website;
m_website.Format("http://www.google.cn/search?complete=1&hl=zh-CN&newwindow=1&q=%22'%s%'22&btnG=Google+%E6%90%9C%E7%B4%A2&meta=&aq=f",m_scb);
m_ctrlWeb.Navigate(m_website,NULL,NULL,NULL,NULL);
UpdateData(TRUE);
}】其他两响应函数正常,唯独【google】出问题啊?我将【'%s%'】改为【%s%】,出错依旧!