www.pudn.com > CtrlIPClt.rar > RunThread.h
#if !defined(AFX_RUNTHREAD_H__17A3DE82_506A_44D6_BF99_176239B5AE69__INCLUDED_)
#define AFX_RUNTHREAD_H__17A3DE82_506A_44D6_BF99_176239B5AE69__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RunThread.h : header file
//
#include "UDPSocket.h" // Added by ClassView
#include "RunLog.h" // Added by ClassView
/////////////////////////////////////////////////////////////////////////////
// CRunThread thread
class CRunThread : public CWinThread
{
DECLARE_DYNCREATE(CRunThread)
protected:
CRunThread(); // protected constructor used by dynamic creation
virtual ~CRunThread();
// Attributes
public:
BOOL InitUDPSocket();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRunThread)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CRunThread)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
CUDPSocket m_cUDPSocket;
public:
void SetIPAddr(CString strIP);
CRunLog *m_pRunLog;
private:
CString m_strIP;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RUNTHREAD_H__17A3DE82_506A_44D6_BF99_176239B5AE69__INCLUDED_)