⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 d145.bmp.txt

📁 Visual C++通信编程实例
💻 TXT
字号:
 while( !m_pRecordset->adoEOF)
 {
                        va~m_pRecordset->GetCollect( " name"),
if(var.vt!=VT_NULL)
                strName = (LPCSTR)_bstr_t(var);
var-m_pRecordset->GetCollect( " sex ");
if(var.vt!=VT_NULL)
       strSex = (LPCSTR)_bstr_t(var);
var:m_pRecordset->GetCollect( " age ");
if(var.vt! =VT_NULL)
                  strAge.Format( "% d",var.intVal);
m_Data.Insertltem(i,strName);
m_Data.SetltemText(i,l,strS ex):
m Data.SetltemText(i,2,strAge);
    m_pRecordset->MoveNext();
    i++;
    }
}
catch(_com_error &e)
{
    AfxMessageBox(”读取个人信息表内数据失败!”);
    AfxMessageBox(e.ErrorMessage(》;
}
对IDC_LISTDATA瀑加针对BN_CLICKED事件的函数,并编辑该函数。
    void CRemoteDBDlg::OnListdata0
    {
    //TODO: Add your control notification handler code here
    ListData();
    )
    2)删除全部数据。对IDC_DELALLDATA添加针对BN__ CLICKED事件的函数,并编
辑该函数。
void CRemoteDBDlg::OnDelalldata0
{
    ,, TODO: Add your control notification handler code here
    if (MessageBox(”删除全部数据?”,”提示”,MB_OKCANCEL I MB_ICONQUESTION)
    == IDCANCEL)
    return;
145

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -