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

  • 大小: 18.72MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-07-07
  • 語言: C/C++
  • 標簽: vc++??

資源簡介

電子郵件系統(tǒng)的工作原理及相關協(xié)議,并基于這些協(xié)議設計和開發(fā)了一個實用的郵件收發(fā)系統(tǒng)。用戶運行軟件后可以進行基本操作,郵件管理(郵件發(fā)送和郵件接收),用戶管理(查詢郵件和修改,查詢、刪除用戶),用戶可以發(fā)送或接收一個或多個帶附件的郵件,也可以使用不同的SMTP或POP3服務器。

資源截圖

代碼片段和文件信息

//?AccountSetDlg.cpp?:?implementation?file
//

#include?“stdafx.h“
#include?“郵件收發(fā)管理系統(tǒng).h“
#include?“AccountSetDlg.h“
#include?“String.h“
#include?“Smtp.h“

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

extern?CString?strSmtpAddr?strAccount????strPassword?strSendfrom;
extern?int?intPort;
/////////////////////////////////////////////////////////////////////////////
//?CAccountSetDlg?dialog


CAccountSetDlg::CAccountSetDlg(CWnd*?pParent?/*=NULL*/)
:?CDialog(CAccountSetDlg::IDD?pParent)
{
//{{AFX_DATA_INIT(CAccountSetDlg)
m_port?=?0;
//}}AFX_DATA_INIT
}


void?CAccountSetDlg::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAccountSetDlg)
DDX_Control(pDX?IDC_OK?m_button2);
DDX_Control(pDX?IDC_BUTTON1?m_button1);
DDX_Control(pDX?IDC_LIST_SMTP?m_smtpList);
DDX_Text(pDX?IDC_EDIT_PORT?m_port);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAccountSetDlg?CDialog)
//{{AFX_MSG_MAP(CAccountSetDlg)
ON_BN_CLICKED(IDC_OK?OnOk)
ON_BN_CLICKED(IDC_BUTTON1?OnButtonTest)
ON_NOTIFY(NM_RCLICK?IDC_LIST_SMTP?OnRclickListSmtp)
ON_COMMAND(ID_MENUITEM32778?OnMenuDelete)
ON_NOTIFY(NM_DBLCLK?IDC_LIST_SMTP?OnDblclkListSmtp)
ON_COMMAND(IDR_MENU_Add?OnMENUAdd)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CAccountSetDlg?message?handlers

void?CAccountSetDlg::OnOk()?
{
//?TODO:?Add?your?control?notification?handler?code?here

CString?portTemp;???????????????????????//用當前edit控件中內容進行測試
GetDlgItemText(IDC_EDIT_SMTP????????strSmtpAddr);
GetDlgItemText(IDC_EDIT_PORT????????portTemp);
GetDlgItemText(IDC_EDIT_ACCOUNT??????strAccount);????????
GetDlgItemText(IDC_EDIT_PWD?????strPassword);?????????
GetDlgItemText(IDC_EDIT_SENDFROM?????strSendfrom);

???? if(strSmtpAddr.IsEmpty())
{
AfxMessageBox(“請?zhí)顚憇mtp服務器地址!“);?
return?;
}
if(portTemp.IsEmpty())
{
AfxMessageBox(“請?zhí)顚憇mtp服務器端口號!“);?
return?;
}
if(strAccount.IsEmpty())
{
AfxMessageBox(“請?zhí)顚憥ぬ?“);?
return?;
}
if(strPassword.IsEmpty())
{
AfxMessageBox(“請?zhí)顚懨艽a“);?
return?;
}
if(strSendfrom.IsEmpty())
{
AfxMessageBox(“請?zhí)顚懓l(fā)送地址!“);?
return?;
}

CString??totalTemp;
// portTemp.Format(“%d“intPort);
????
??//寫入系統(tǒng)默認smtp設置文件

FILE?*pSetFile=fopen(“smtpSet.txt““w“);
totalTemp=strSmtpAddr+“#&“+portTemp+“#&“+strAccount+“#&“+strPassword+“#&“+strSendfrom+“#&“;
fwrite(totalTemp1strlen(totalTemp)pSetFile);
?
fclose(pSetFile);
?????//寫入smtp配置文件夾
CString?path;

?????
path=“smtpList/“+strSmtpAddr+“.txt“;
????pSetFile=fopen(path“w“);
totalTemp=strSmtpAddr+“#&“+portTemp+“#&“+strAccount+“#&“+strPassword+“#&“+strSendfrom+“#&“;
fwrite(totalTemp1strlen(totalTemp)pSetFile);
?
fclose(pSetFile);
m_smtpList.DeleteAllItems();
OpenFile();

MessageBox(“設置成功“);
?/*??m_smtpList.InsertItem(00);
m_smtpList

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-05-14?15:32??基于vc++的郵件收發(fā)系統(tǒng)\
?????文件???????13166??2009-06-30?22:05??基于vc++的郵件收發(fā)系統(tǒng)\AccountSetDlg.cpp
?????文件????????1703??2009-06-30?22:04??基于vc++的郵件收發(fā)系統(tǒng)\AccountSetDlg.h
?????目錄???????????0??2012-05-19?16:38??基于vc++的郵件收發(fā)系統(tǒng)\AttFiles\
?????文件?????????580??2009-06-25?09:33??基于vc++的郵件收發(fā)系統(tǒng)\AttFiles\l2.lic
?????文件????????3236??2009-06-04?09:34??基于vc++的郵件收發(fā)系統(tǒng)\base.cpp
?????文件?????????908??2009-06-04?10:27??基于vc++的郵件收發(fā)系統(tǒng)\base.h
?????目錄???????????0??2012-05-19?16:38??基于vc++的郵件收發(fā)系統(tǒng)\communication\
?????文件????????6974??2009-07-01?10:24??基于vc++的郵件收發(fā)系統(tǒng)\Communication.cpp
?????文件????????1464??2009-07-01?09:44??基于vc++的郵件收發(fā)系統(tǒng)\Communication.h
?????文件??????????60??2009-06-12?20:48??基于vc++的郵件收發(fā)系統(tǒng)\communication.txt
?????文件??????????20??2009-06-13?10:21??基于vc++的郵件收發(fā)系統(tǒng)\communication\22212121
?????文件??????????33??2009-06-14?21:09??基于vc++的郵件收發(fā)系統(tǒng)\communication\BREEZE.txt
?????文件??????????37??2009-06-24?16:22??基于vc++的郵件收發(fā)系統(tǒng)\communication\JincoKK.txt
?????文件??????????25??2009-06-24?16:15??基于vc++的郵件收發(fā)系統(tǒng)\communication\LGS.txt
?????文件????????3250??2009-06-13?18:05??基于vc++的郵件收發(fā)系統(tǒng)\CustomButton.cpp
?????文件????????1456??2009-06-13?18:05??基于vc++的郵件收發(fā)系統(tǒng)\CustomButton.h
?????目錄???????????0??2013-05-14?15:32??基于vc++的郵件收發(fā)系統(tǒng)\Debug\
?????文件??????109312??2013-05-14?15:32??基于vc++的郵件收發(fā)系統(tǒng)\Debug\AccountSetDlg.obj
?????文件??????398896??2013-05-14?15:32??基于vc++的郵件收發(fā)系統(tǒng)\Debug\AccountSetDlg.sbr
?????文件???????36885??2013-05-14?15:32??基于vc++的郵件收發(fā)系統(tǒng)\Debug\base.obj
?????文件??????353326??2013-05-14?15:32??基于vc++的郵件收發(fā)系統(tǒng)\Debug\base.sbr
?????文件???????54414??2013-05-14?15:32??基于vc++的郵件收發(fā)系統(tǒng)\Debug\BuildLog.htm
?????文件???????57128??2013-05-14?15:32??基于vc++的郵件收發(fā)系統(tǒng)\Debug\Communication.obj
?????文件???????11499??2013-05-14?15:32??基于vc++的郵件收發(fā)系統(tǒng)\Debug\Communication.sbr
?????文件???????34569??2013-05-14?15:32??基于vc++的郵件收發(fā)系統(tǒng)\Debug\CustomButton.obj
?????文件???????23073??2013-05-14?15:32??基于vc++的郵件收發(fā)系統(tǒng)\Debug\CustomButton.sbr
?????文件???????55999??2013-05-14?15:32??基于vc++的郵件收發(fā)系統(tǒng)\Debug\DlgFold.obj
?????文件???????10834??2013-05-14?15:32??基于vc++的郵件收發(fā)系統(tǒng)\Debug\DlgFold.sbr
?????文件???????59629??2001-09-28?00:00??基于vc++的郵件收發(fā)系統(tǒng)\Debug\jmail.tlh
?????文件???????57389??2001-09-28?00:00??基于vc++的郵件收發(fā)系統(tǒng)\Debug\jmail.tli
............此處省略330個文件信息

評論

共有 條評論