⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addrdlg.cpp

📁 一个简单的服务器客户端通信程序。适用于网络编程入门
💻 CPP
字号:
// AddrDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Talk.h"
#include "AddrDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CAddrDlg dialog


CAddrDlg::CAddrDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CAddrDlg::IDD, pParent)
{
	EnableAutomation();

	//{{AFX_DATA_INIT(CAddrDlg)
	m_Address = _T("127.0.0.1");
	m_Port = 3333;
	//}}AFX_DATA_INIT
}


void CAddrDlg::OnFinalRelease()
{
	// When the last reference for an automation object is released
	// OnFinalRelease is called.  The base class will automatically
	// deletes the object.  Add additional cleanup required for your
	// object before calling the base class.

	CDialog::OnFinalRelease();
}

void CAddrDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAddrDlg)
	DDX_Text(pDX, IDC_ADDRESS, m_Address);
	DDX_Text(pDX, IDC_PORT, m_Port);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAddrDlg, CDialog)
	//{{AFX_MSG_MAP(CAddrDlg)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

BEGIN_DISPATCH_MAP(CAddrDlg, CDialog)
	//{{AFX_DISPATCH_MAP(CAddrDlg)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()

// Note: we add support for IID_IAddrDlg to support typesafe binding
//  from VBA.  This IID must match the GUID that is attached to the 
//  dispinterface in the .ODL file.

// {CC4C26B9-ACAC-4E96-BC30-D0FD588F215F}
static const IID IID_IAddrDlg =
{ 0xcc4c26b9, 0xacac, 0x4e96, { 0xbc, 0x30, 0xd0, 0xfd, 0x58, 0x8f, 0x21, 0x5f } };

BEGIN_INTERFACE_MAP(CAddrDlg, CDialog)
	INTERFACE_PART(CAddrDlg, IID_IAddrDlg, Dispatch)
END_INTERFACE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAddrDlg message handlers

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -