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

  • 大小: 5.78MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-11-01
  • 語(yǔ)言: C/C++
  • 標(biāo)簽:

資源簡(jiǎn)介

mfc實(shí)現(xiàn)多人語(yǔ)音聊天!

資源截圖

代碼片段和文件信息

//?AddFriendInfo.cpp?:?implementation?file
//

#include?“stdafx.h“
#include?“client.h“
#include?“AddFriendInfo.h“

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

/////////////////////////////////////////////////////////////////////////////
//?CAddFriendInfo?dialog


CAddFriendInfo::CAddFriendInfo(CWnd*?pParent?/*=NULL*/)
:?CDialog(CAddFriendInfo::IDD?pParent)
{
//{{AFX_DATA_INIT(CAddFriendInfo)
m_name?=?_T(““);
m_phone?=?_T(““);
m_addr?=?_T(““);
m_workUnit?=?_T(““);
//}}AFX_DATA_INIT
}


void?CAddFriendInfo::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAddFriendInfo)
DDX_Text(pDX?IDC_NAME?m_name);
DDX_Text(pDX?IDC_PHONE?m_phone);
DDX_Text(pDX?IDC_ADDR?m_addr);
DDX_Text(pDX?IDC_WORKUNIT?m_workUnit);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAddFriendInfo?CDialog)
//{{AFX_MSG_MAP(CAddFriendInfo)
ON_BN_CLICKED(IDC_SAVE?OnSave)
ON_BN_CLICKED(IDC_CANCEL?OnCancel)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CAddFriendInfo?message?handlers

void?CAddFriendInfo::OnSave()?
{
//?TODO:?Add?your?control?notification?handler?code?here
UpdateData();
//姓名:只允許英文單詞或空格,長(zhǎng)度不超過(guò)20,不允許為空

m_name.TrimLeft();
m_name.TrimRight();
if?(m_name.IsEmpty())?{
MessageBox(“姓名不為空!“““);
return;
}
//? if?(!CheckAlphaOrSpace((char*)((LPCTSTR)m_name)))?{
//? MessageBox(“只允許英文單詞或空格!“““);
//? return;
/* }*/
//電話號(hào)碼:允許手機(jī)號(hào)碼(11位或12位)或?普通固化號(hào)碼(8位或12位),不允許為空
m_phone.TrimLeft();
m_phone.TrimRight();
if?(m_phone.IsEmpty())?{
MessageBox(“電話號(hào)碼不為空!“““);
return;
}
int?nLen?=?0;
nLen?=?m_phone.GetLength();
//? if?(?!(nLen==8||nLen==11||nLen==12)?){
//? MessageBox(“電話號(hào)碼長(zhǎng)度有錯(cuò)!\n允許手機(jī)號(hào)碼(11位或12位)\n或?普通固化號(hào)碼(8位或12位)“““);
//? return;
//? }
//住址:用戶住址,長(zhǎng)度不超過(guò)100,允許為空
//工作單位:長(zhǎng)度不超過(guò)100,允許為空


CString?strSql;
strSql.Format(“select?*?from?contact?where?姓名?=?‘%s‘?“m_name);
EXESQL(strSql)

if?(!g_ado.m_pRecordset->adoEOF)?{//竟然無(wú)recordsetcount!!
MessageBox(“該姓名已存在!“““);
return;
}
else{
strSql.Format(“insert?into?contact?(姓名電話號(hào)碼地址工作單位)?values(‘%s‘‘%s‘‘%s‘‘%s‘)“
m_namem_phonem_addrm_workUnit);
EXESQL(strSql)
MessageBox(“創(chuàng)建賬戶成功!“““);
// UpdateList();
CDialog::OnOK();
}
}

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

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件???????2708??2007-12-31?13:47??SoftPhone\Client\AddFriendInfo.cpp

?????文件???????1305??2007-12-31?13:46??SoftPhone\Client\AddFriendInfo.h

?????文件???????3313??2007-12-31?10:21??SoftPhone\Client\AdoOperate.cpp

?????文件???????1368??2007-12-22?19:50??SoftPhone\Client\AdoOperate.h

?????文件???????3152??2007-12-25?18:48??SoftPhone\Client\AudioCode.cpp

?????文件???????1008??2007-12-25?18:45??SoftPhone\Client\AudioCode.h

?????文件???????2590??2008-01-01?01:33??SoftPhone\Client\MessageControl.cpp

?????文件???????1287??2007-12-31?09:28??SoftPhone\Client\AudioSocket.cpp

?????文件????????863??2007-12-27?22:37??SoftPhone\Client\AudioSocket.h

?????文件?????541184??2008-01-01?01:40??SoftPhone\Client\Client.opt

?????文件???????5286??2008-01-01?01:31??SoftPhone\Client\StateMacManager.cpp

?????文件???????1503??2007-12-26?10:41??SoftPhone\Client\CallOutState.h

?????文件??????25496??2007-12-31?19:56??SoftPhone\Client\Client.aps

?????文件???????4725??2008-01-01?01:40??SoftPhone\Client\Client.clw

?????文件???????2384??2007-12-31?16:03??SoftPhone\Client\Client.cpp

?????文件??????42792??2007-12-27?16:26??SoftPhone\Client\Client.dep

?????文件???????8483??2007-12-31?15:04??SoftPhone\Client\Client.dsp

?????文件????????535??2007-12-31?13:52??SoftPhone\Client\Client.dsw

?????文件???????1324??2007-12-22?20:12??SoftPhone\Client\Client.h

?????文件??????17445??2007-12-27?16:26??SoftPhone\Client\Client.mak

?????文件?????672768??2008-01-01?01:40??SoftPhone\Client\Client.ncb

?????文件???????2991??2008-01-01?01:40??SoftPhone\Client\Client.plg

?????文件??????10534??2007-12-31?16:23??SoftPhone\Client\Client.rc

?????文件???????6360??2007-12-31?16:28??SoftPhone\Client\ClientDlg.cpp

?????文件???????1706??2007-12-31?16:21??SoftPhone\Client\ClientDlg.h

?????文件???????6466??2008-01-01?01:40??SoftPhone\Client\SoftPhoneDlg.cpp

?????文件????????812??2007-12-25?00:29??SoftPhone\Client\ClientSocket.h

?????文件???????8035??2007-12-27?16:20??SoftPhone\Client\CWaveIn.cpp

?????文件???????1647??2007-12-27?16:11??SoftPhone\Client\CWaveIn.h

?????文件????5799936??2008-01-01?01:40??SoftPhone\Client\DataInfo.mdb

............此處省略421個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源