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

📄 client.h

📁 用CJ60Lib界面库制作的SQL数据库客户与服务器程序。
💻 H
字号:
// client.h : main header file for the CLIENT application
//

#if !defined(AFX_CLIENT_H__EE29264B_6AC4_4B65_816C_81BD925E65F1__INCLUDED_)
#define AFX_CLIENT_H__EE29264B_6AC4_4B65_816C_81BD925E65F1__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

/////////////////////////////////////////////////////////////////////////////
// Global function

void Message( LPCTSTR );

/////////////////////////////////////////////////////////////////////////////
// Macro definitions

#define LOG_USER		0x0001
#define LOG_SUPERUSER	0x0002
#define LOG_ADMIN		0x0004

/////////////////////////////////////////////////////////////////////////////
// CClientApp:
// See client.cpp for the implementation of this class

#include "RecSocket.h"
class CMsg;

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

// Attributes
public:
	CString				m_name;
	DWORD				m_type;
	CString				m_address;
	UINT				m_port;

	CRecSocket*			m_pSocket;
	CSocketFile*		m_pFile;
	CArchive*			m_pArchiveIn;
	CArchive*			m_pArchiveOut;

	BOOL				m_bConnection;

	char				dir[ 1024 ];
	CList< HTREEITEM, HTREEITEM& >	m_treeList;
	CPtrList			m_ClientDocList;
	CPtrList			m_SelDocList;

// Operations
public:
	void	Drop();
	BOOL	Logon();
	BOOL	ConnectSocket( LPCTSTR name, LPCTSTR code, LPCTSTR address, UINT port );
	void	SendMsg( CMsg& msg );
	void	ProcessPendingRead();
	CMsg*	ReceiveMsg();

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

// Implementation
	//{{AFX_MSG(CClientApp)
	afx_msg void OnAppAbout();
	afx_msg void OnConnect();
	afx_msg void OnUpdateConnect(CCmdUI* pCmdUI);
	afx_msg void OnDisconnect();
	afx_msg void OnUpdateDisconnect(CCmdUI* pCmdUI);
	afx_msg void OnHelpMe();
	afx_msg void OnFileNew();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


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

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

#endif // !defined(AFX_CLIENT_H__EE29264B_6AC4_4B65_816C_81BD925E65F1__INCLUDED_)

⌨️ 快捷键说明

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