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

📄 chat.h

📁 网络聊天工具原代码 VC源码(网络编程
💻 H
字号:
// Chat.h : main header file for the CHAT application
//

#if !defined(AFX_CHAT_H__E01BD025_4AA7_11D4_93A3_0000E86DCAD8__INCLUDED_)
#define AFX_CHAT_H__E01BD025_4AA7_11D4_93A3_0000E86DCAD8__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols

#include "const.h"
#include <afxmt.h>


typedef struct
{
	//网络部分 Network
	BOOL				bUseProxy;			//是否用代理服务器
	BOOL				bProxyUsable;		//是否代理服务器已经认证过
	CString				szProxyPass;		//代理服务器的密码和帐号
	CString				szProxyUser;		//代理服务器的帐号
	UINT				nProxyType;			//代理服务器类型
	CString				szProxyIP;			//代理服务器位置
	UINT				nProxyPort;			//代理服务器服务端口
	CString				szDisableProxy;		//禁止使用代理服务的IP范围

	//服务器部分
	UINT				nServicePort;		//使用端口
	CString				szLocalIP;			//本主机的IP地址

	//PCTel客户端部分 Client
	UINT				nWaitTime;			//响应等待时间
	BOOL				bWinsockReady;
	CString				szLastCallHost;		//上次呼叫地址
	int					nLastCallPort;	

	//个人信息
	CString				szUserName;	//姓名
}CHATConfig;


/////////////////////////////////////////////////////////////////////////////
// CChatApp:
// See Chat.cpp for the implementation of this class
//

class CChatApp : public CWinApp
{
public:
	CChatApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChatApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CChatApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

extern CHATConfig confChat;
extern CMutex g_cMutexClient;
extern CMutex g_cMutexServer;

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHAT_H__E01BD025_4AA7_11D4_93A3_0000E86DCAD8__INCLUDED_)

⌨️ 快捷键说明

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