91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

自己寫的一個C/S模式圖書借閱管理系統,供大家學習網絡編程參考。數據庫使用的SQLServer2000,里面含有數據庫文件,直接附加數據庫就可使用。

資源截圖

代碼片段和文件信息

//?AddUserDlg.cpp?:?implementation?file
//

#include?“stdafx.h“
#include?“Client.h“
#include?“AddUserDlg.h“
#include“MainFrm.h“

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

/////////////////////////////////////////////////////////////////////////////
//?CAddUserDlg?dialog


CAddUserDlg::CAddUserDlg(CWnd*?pParent?/*=NULL*/)
:?CDialog(CAddUserDlg::IDD?pParent)
{
//{{AFX_DATA_INIT(CAddUserDlg)
m_Usrname?=?_T(““);
m_Usrpwd1?=?_T(““);
m_Usrpwd2?=?_T(““);
m_WorkID?=?_T(““);
//}}AFX_DATA_INIT
}


void?CAddUserDlg::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAddUserDlg)
DDX_Text(pDX?IDC_EDIT_Usrname?m_Usrname);
DDX_Text(pDX?IDC_EDIT_Usrpwd1?m_Usrpwd1);
DDX_Text(pDX?IDC_EDIT_Usrpwd2?m_Usrpwd2);
DDX_Text(pDX?IDC_EDIT_WorkID?m_WorkID);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAddUserDlg?CDialog)
//{{AFX_MSG_MAP(CAddUserDlg)
ON_BN_CLICKED(ID_BTN_Add?OnBTNAdd)
ON_BN_CLICKED(ID_BTN_CANCEL?OnBtnCancel)
// ON_COMMAND(ID_ACCOUNT_ADD?OnAccountAdd)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CAddUserDlg?message?handlers

void?CAddUserDlg::OnBTNAdd()?
{
//?TODO:?Add?your?control?notification?handler?code?here
CString?str=“Usr01“;
CMainframe?*?pWnd?=?(CMainframe*)AfxGetMainWnd();
UpdateData(TRUE);
if(m_Usrname.Compare(““)==0||m_Usrpwd1.Compare(““)==0||m_Usrpwd2.Compare(““)==0||m_WorkID.Compare(““)==0)
{
MessageBox(“請填寫完整數據““增加用戶“);
return;
}
if(m_Usrpwd1!=m_Usrpwd2)
{
AfxMessageBox(“填入的密碼不一致,請核對!“);

m_Usrpwd1.Empty();
m_Usrpwd2.Empty();

UpdateData(FALSE);
}
else
{
str+=m_Usrname+‘‘+m_Usrpwd1+‘‘+m_WorkID+‘‘;
int?nSendLen=pWnd->m_sock.Send((void*)str.GetBuffer(0)str.GetLength());
if(nSendLen>0)
{
m_Usrname.Empty();
m_Usrpwd1.Empty();
m_Usrpwd2.Empty();
UpdateData(FALSE);
}
else
{
AfxMessageBox(“網絡錯誤,請檢查網絡連接是否正確!“ERROR);
}
}
}

void?CAddUserDlg::OnBtnCancel()?
{
//?TODO:?Add?your?control?notification?handler?code?here
CDialog::OnCancel();
}

/*void?CAddUserDlg::OnAccountAdd()?
{
//?TODO:?Add?your?command?handler?code?here

}
*/

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????2352??2012-06-18?15:34??netLibr\Client\AddUserDlg.cpp

?????文件???????1325??2012-06-09?19:52??netLibr\Client\AddUserDlg.h

?????文件???????2315??2012-06-15?18:46??netLibr\Client\BookInfoDlg.cpp

?????文件???????1528??2012-06-15?17:34??netLibr\Client\BookInfoDlg.h

?????文件???????2541??2012-06-18?15:34??netLibr\Client\BookLostDlg.cpp

?????文件???????1351??2012-06-18?15:28??netLibr\Client\BookLostDlg.h

?????文件???????3179??2012-06-18?15:34??netLibr\Client\BorrowDlg.cpp

?????文件???????1356??2012-06-18?15:28??netLibr\Client\BorrowDlg.h

?????文件???????2490??2012-06-18?15:34??netLibr\Client\ChangePwdDlg.cpp

?????文件???????1338??2012-06-15?10:04??netLibr\Client\ChangePwdDlg.h

?????文件????3757344??2013-05-15?23:49??netLibr\Client\Client.aps

?????文件??????10896??2013-05-15?21:04??netLibr\Client\Client.clw

?????文件???????4977??2012-06-18?16:15??netLibr\Client\Client.cpp

?????文件???????6847??2012-06-17?22:08??netLibr\Client\Client.dsp

?????文件????????518??2012-06-07?14:18??netLibr\Client\Client.dsw

?????文件???????1407??2012-06-18?13:57??netLibr\Client\Client.h

?????文件?????271360??2013-05-15?23:49??netLibr\Client\Client.ncb

?????文件?????185856??2013-05-15?23:49??netLibr\Client\Client.opt

?????文件????????248??2013-05-14?20:31??netLibr\Client\Client.plg

?????文件??????25405??2013-05-15?23:49??netLibr\Client\Client.rc

?????文件???????1742??2012-06-07?14:17??netLibr\Client\ClientDoc.cpp

?????文件???????1475??2012-06-07?14:17??netLibr\Client\ClientDoc.h

?????文件???????3262??2012-06-18?15:19??netLibr\Client\ClientView.cpp

?????文件???????1699??2012-06-17?19:32??netLibr\Client\ClientView.h

?????文件??????72731??2004-12-14?21:45??netLibr\Client\corona.smf

?????文件??????19608??2012-06-25?09:35??netLibr\Client\Debug\AddUserDlg.obj

?????文件??????21393??2012-06-25?09:35??netLibr\Client\Debug\BookInfoDlg.obj

?????文件??????27583??2012-06-25?09:35??netLibr\Client\Debug\BookLostDlg.obj

?????文件??????30197??2012-06-25?09:35??netLibr\Client\Debug\BorrowDlg.obj

?????文件??????20098??2012-06-25?09:35??netLibr\Client\Debug\ChangePwdDlg.obj

............此處省略143個文件信息

評論

共有 條評論