1.VC编写电子邮件客户端的问题
{ // TODO: Add your control notification handler code here char buff[1024*30+1]; typedef int (WINAPI RECEIVEMAILTEXT)(char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,int deleteFlag); RECEIVEMAILTEXT *icePub_receiveMailText = 0; HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll"); if(hDLLDrv) { icePub_receiveMailText = (RECEIVEMAILTEXT *)GetProcAddress(hDLLDrv, "icePub_receiveMailText"); } icePub_receiveMailText("bigshuye","12345678","pop.tom.com",buff,1024*30,"\r\n\r\n",0); m_text = buff; UpdateData(FALSE);}/icetool/other/sample.rar有例子。
2.求一份基于VC的邮件客户端的源代码
完整的已发至您邮箱,下面贴一段POP3.cpp的代码。希望对您有所帮助。
// Pop3.cpp : implementation file
//
#include "stdafx.h"
#include "MyEmailClient.h"
#include "Pop3.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPop3
CPop3::CPop3()
{
}
CPop3::~CPop3()
{
}
BOOL CPop3::Disconnect()
{
}
// Do not edit the following lines, which are needed by ClassWizard.
#if 0
BEGIN_MESSAGE_MAP(CPop3, CSocket)
//{{AFX_MSG_MAP(CPop3)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
#endif // 0
/////////////////////////////////////////////////////////////////////////////
// CPop3 member functions
转载请注明出处众文网 » c电子邮件客户端毕业论文