mainthread.h

来自「PDA通讯网关服务器源码程序」· C头文件 代码 · 共 69 行

H
69
字号
#if !defined(AFX_MAINTHREAD_H__0BF0DCE0_5A9D_4BBB_B029_17FB4118126D__INCLUDED_)
#define AFX_MAINTHREAD_H__0BF0DCE0_5A9D_4BBB_B029_17FB4118126D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MainThread.h : header file
//



#include "GateAgentDlg.h"
/////////////////////////////////////////////////////////////////////////////
// CGateAgentDlg dialog


/////////////////////////////////////////////////////////////////////////////
// CMainThread thread

class CMainThread : public CWinThread
{
	DECLARE_DYNCREATE(CMainThread)
protected:
	CMainThread();           // protected constructor used by dynamic creation

// Attributes
public:
	class CGateAgentDlg *m_pDlg;
	int m_iSendNum;
	int m_iReadTime;//轮询接收时间
	int m_iSendTime;//轮询发送时间

// Operations
public:

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

// Implementation
protected:
	virtual ~CMainThread();

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

	DECLARE_MESSAGE_MAP()
private:
	int OnDoSendThread();
	int OnReadCgf();
	int OnRecvNewSms();
	int OnStartDoWithThread(int iCom,char *chTPA,char *chTP_UD,char *chTP_SCTS);

};

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

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

#endif // !defined(AFX_MAINTHREAD_H__0BF0DCE0_5A9D_4BBB_B029_17FB4118126D__INCLUDED_)

⌨️ 快捷键说明

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