msnuser.h

来自「模拟MSN客户端。可实现登陆、聊天功能。 VC++开发环境。」· C头文件 代码 · 共 70 行

H
70
字号
#if !defined(AFX_MSNUSER_H__538CF43B_9880_4E67_B978_92FDBFA19875__INCLUDED_)
#define AFX_MSNUSER_H__538CF43B_9880_4E67_B978_92FDBFA19875__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MsnUser.h : header file
//
class CMsnLoginClient;


/////////////////////////////////////////////////////////////////////////////
// CMsnUser command target

class CMsnUser : public CAsyncSocket
{
// Attributes
public:
	CString m_strNickName;
	CString m_strEmail;
	CString m_strStatus;
// Operations
public:
	CMsnUser();
	virtual ~CMsnUser();

// Overrides
public:
	CString m_strWaitSend;
	int m_iCountMsg;
	int UserInputMsg(const char *aInMsg );
	int WriteMsgFile( const  char *aInMsg, int iIO );
	int DoMSG( CString strMsg , int iInMsgLen );
	int m_iBytesForCmd;
	int m_iFree;
	CString m_strCKI;
	int m_iSendXh;
	int DoRecvedStr( CString strMsg);
	int m_iPort;
	CString m_Server;
	CString m_strSessionID;
	CMsnLoginClient* m_pLoginClient;
	int SBInit(char *aInServer,char *aInCKI);
	int m_iUserNo;

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMsnUser)
	public:
	virtual void OnConnect(int nErrorCode);
	virtual void OnReceive(int nErrorCode);
	virtual int Send(const void* lpBuf, int nBufLen, int nFlags = 0);
	virtual void OnClose(int nErrorCode);
	//}}AFX_VIRTUAL

	// Generated message map functions
	//{{AFX_MSG(CMsnUser)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

// Implementation
protected:
};

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

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

#endif // !defined(AFX_MSNUSER_H__538CF43B_9880_4E67_B978_92FDBFA19875__INCLUDED_)

⌨️ 快捷键说明

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