急救,救!该怎么处理

急救,急救!!!
本人按照书上做了一个试题库系统,其它模块运转正常,但用户管理模块彻底进不去了
分为两段代码:
  进入用户管理模块代码:
  if(m_tree.GetItemText(hselItem)=="用户管理")
{
if(userright==0)
{

USERDLG mydlg;
mydlg.DoModal();
return;
}
else
{
AfxMessageBox("您是录入员,没有此权限!");
return;
}
}
USERDLG 的全部代码:
// USERDLG.cpp : implementation file
//

#include "stdafx.h"
#include "TBManager.h"
#include "USERDLG.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// USERDLG dialog


USERDLG::USERDLG(CWnd* pParent /*=NULL*/)
: CDialog(USERDLG::IDD, pParent)
{
//{{AFX_DATA_INIT(USERDLG)
m_name = _T("");
m_newpass = _T("");
m_nnewpass = _T("");
m_oldpass = _T("");
m_pass1 = _T("");
m_pass2 = _T("");
//}}AFX_DATA_INIT
}


void USERDLG::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(USERDLG)
DDX_Control(pDX, IDC_LIST2, m_list);
DDX_Control(pDX, IDC_COMBO1, m_combo);
DDX_Text(pDX, IDC_NAME, m_name);
DDX_Text(pDX, IDC_NEWPASS, m_newpass);
DDX_Text(pDX, IDC_NNEWPASS, m_nnewpass);
DDX_Text(pDX, IDC_OLDPASS, m_oldpass);
DDX_Text(pDX, IDC_PASS1, m_pass1);
DDX_Text(pDX, IDC_PASS2, m_pass2);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(USERDLG, CDialog)
//{{AFX_MSG_MAP(USERDLG)
ON_BN_CLICKED(IDC_MODIFY, OnModify)
ON_BN_CLICKED(IDC_ADDUSER, OnAdduser)
ON_BN_CLICKED(IDC_DELUSER, OnDeluser)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// USERDLG message handlers

void USERDLG::OnModify() //修改密码
{
UpdateData();
if(m_oldpass=="")
{
  MessageBox("请选择用户!");
GetDlgItem(IDC_OLDPASS)->SetFocus();
//return ;
}
if(m_oldpass!=e_mima)
{
MessageBox("密码与原密码不符,请重新输入!");
GetDlgItem(IDC_OLDPASS)->SetFocus();
m_oldpass=m_newpass=m_nnewpass="";
UpdateData(false);
//return ;
}
if(m_newpass!=m_nnewpass)
{
MessageBox("密码不符!");
GetDlgItem(IDC_OLDPASS)->SetFocus();
m_oldpass=m_newpass=m_nnewpass="";
UpdateData(false);
//return ;
}
else
{
_variant_t ra;
CString str;
str.Format("update password set password='%s' where name='%s'",m_newpass,e_user);
m_pConnection->Execute(str.AllocSysString(),&ra,adCmdText);
MessageBox("密码修改成功!");
m_oldpass=m_newpass=m_nnewpass="";
UpdateData(false);
// return ;
}

}

void USERDLG::OnAdduser() 
{
UpdateData();
//CString temp;
if(m_name=="")
{
MessageBox("您好,用户名不能为空!");
GetDlgItem(IDC_NAME)->SetFocus();
}
else if(m_pass1!=m_pass2)
{  
MessageBox("两次密码输入不一致,请重新输入!");
GetDlgItem(IDC_PASS1)->SetFocus();
m_pass1=m_pass2="";
UpdateData(false);
}
else 
{
CString str,temp;
_variant_t ra;
int k=m_combo.GetCurSel();//得到下拉列表中选中该项的位置
m_combo.GetLBText(k,temp);//得到对应位置的内容保存在temp中
int temp1 = atoi(temp);
str.Format("insert into password values('%s','%s','%d')",m_name,m_pass1,temp1);
//m_pConnection->Execute(str.AllocSysString(),&ra,adCmdText);
m_pConnection->Execute(_bstr_t(str),&ra,adCmdText);
showdata();
MessageBox("用戶添加成功!");