我爱Aspx >> VC.Net >> 基于MFC的编写线程快速入门基于MFC的编写线程快速入门
手,编写线程,不知从何下手,不知编写线程要做那些,下面给出一个线程的简要框架
//////////////////////////////////////////////////////////////
//定义线程类YourThread.h
#if !defined(YOURTHREAD_INCLUDE_FILE)
#define YOURTHREAD_INCLUDE_FILE
class CYourThread :public CWinThread
{
....
DECLARE_DYNCREATE(CYourThread)
public:
CYourThread(); // protected constructor used by dynamic creation
// Attributes
public:
int m_bCloseFlag;
HANDLE m_hEventKill;
HANDLE m_hEventDead;
//操件
public:
void KillThread(); //清除本线程
protected:
virtual void SingleStep();
virtual void Delete();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEgClientCacheThread)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
【我对这篇文章有话说?】
Serialization入门读物---PART1[05-21]
Serialization入门读物---PART1[05-21]
vc++中使用xml[05-21]
vc++中使用xml[05-21]
异步调用win32 internet functio..[05-21]
异步调用win32 internet functio..[05-21]
MSDN笔记---TN001:Window Class ..[05-21]
c++入门学习笔记--类和对象[05-21]
IP多播技术及其编程(转载自http:..[05-21]
c++入门学习笔记继承[05-21]