我爱Aspx >> VC.Net >> 基于MFC的编写线程快速入门virtual int Run();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CYourThread();
// Generated message map functions
//{{AFX_MSG(CEgClientCacheThread)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
}
#ednif
////////////////////////////////////////////
//实现文件YourThread.cpp
#include "stdafx.h"
#include "YourThread.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CYourThread, CWinThread)
CYourThread::CYourThread()
{
m_bAutoDelete = FALSE; //注:该成员为CWinThread的成员,如为TRUE,在CWinThread::Delete()将删除线程
//置为FALSE不允许自动删除线程自已
m_hEventKill = CreateEvent(NULL, TRUE, FALSE, NULL);
m_hEventDead = CreateEvent(NULL, TRUE, FALSE, NULL);
【我对这篇文章有话说?】
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]