cmoboBox的使用问题 现在在下拉表中可以选取对象,但是如果在下拉编辑框中输入一个完整的名称然后 打回车,就会报错这是为什么呢?有没有谁知道解决方法,谢拉~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 因为我才发了2个帖都没结呢,新手void CMyDlg::OnEditchangeCombo3() { pointReady(); MSXML::IXMLDOMNodeListPtr nodelist1 = NULL; nodelist1=pDoc3->selectNodes("root/point"); nodelist1->get_length(&nodecount3); CString strcourse,str; m_endposition.GetWindowText(strcourse); if (strcourse!="") { m_e.Insert(0,strcourse); int iCount=m_position.GetCount(); for(long i=0;i<iCount;i++) m_endposition.DeleteString(0); for(int j=0;j<nodecount3;j++) { str=allpoint[j].name; if(str.Find(strcourse,0)!=-1) { m_endposition.AddString(str); } } m_endposition.ShowDropDown(); SetCursor(LoadCursor(NULL,IDC_ARROW)); m_endposition.SetWindowText(strcourse); m_endposition.SetEditSel(strcourse.GetAllocLength(),strcourse.GetAllocLength()); }} 把代码发给我,给你调试一下 [email protected] 你自己自绘的CComboBox控件??? 不是啊,用的工具栏里的combobox上面那个是combobox里的代码怎么改一下让回车后不出错现在点回车会出现对话框 说内存错误 CS模式下, 服务器响应多个客户端的工作流程? 怎么在对话框界面产生32个一模一样的按钮呢? 寻MFC控件的详细使用资料 求助:关于DLL中的静态变量问题 用Socket通讯的C/S为何接受不到数据??? 这样的system()函数怎么调用? 请教一下大虾们,VC他自带的例子程序是放在那个目录下的? 高分!!===?????关于用overlay 显示yuv图象的问题????? 求求你们了 请叫各位同仁一个不算太大的问题,望给予解决!!! 请教CTabCtrl添加两个Dialog,如何从dialog1获取dialog2的地址? MFC编译中的错误信息
void CMyDlg::OnEditchangeCombo3()
{
pointReady();
MSXML::IXMLDOMNodeListPtr nodelist1 = NULL;
nodelist1=pDoc3->selectNodes("root/point");
nodelist1->get_length(&nodecount3);
CString strcourse,str;
m_endposition.GetWindowText(strcourse);
if (strcourse!="")
{
m_e.Insert(0,strcourse);
int iCount=m_position.GetCount();
for(long i=0;i<iCount;i++)
m_endposition.DeleteString(0);
for(int j=0;j<nodecount3;j++)
{
str=allpoint[j].name;
if(str.Find(strcourse,0)!=-1)
{
m_endposition.AddString(str);
}
}
m_endposition.ShowDropDown();
SetCursor(LoadCursor(NULL,IDC_ARROW));
m_endposition.SetWindowText(strcourse);
m_endposition.SetEditSel(strcourse.GetAllocLength(),strcourse.GetAllocLength());
}
}
上面那个是combobox里的代码
怎么改一下
让回车后不出错
现在点回车
会出现对话框 说内存错误