CWinThread

所属分类:进程与线程
开发工具:Visual C++
文件大小:37KB
下载次数:171
上传日期:2008-10-30 13:09:43
上 传 者小印象
说明:  这是一个关于CWinThread以及利用继承自CWinThread使用多线程的程序! 1,尽量使用DECLARE_DYNCREATE,这样能够动态创建。 2,继承自CWinThread,所以可以使用CreateThread()函数进行线程创建,在最开始我被书上的AfxBeginThread(RUNTIME_CLASS(CMyClass))误导了,还以为一定要按照这种方式创建线程呢。 3,查MSDN的同时,也要注意思考C++的机制,这样才能有的放矢地顺利解决问题。
(This is a study on CWinThread and the use of inherited from CWinThread procedures for the use of multi-threaded! 1, to make full use of DECLARE_DYNCREATE, this can be dynamically created. 2, inherited from CWinThread, so you can use CreateThread () function thread-create, in the beginning I was a book AfxBeginThread (RUNTIME_CLASS (CMyClass)) misled, but also that we must create a thread in this manner in accordance with it. 3, search MSDN at the same time and pay attention to thinking C++ Mechanisms targeted in this way can solve the problems smoothly.)

文件列表:
CWinThread\CMyClass.cpp (280, 2008-03-04)
CWinThread\CMyClass.h (202, 2008-03-04)
CWinThread\CWinThread.clw (2378, 2008-07-22)
CWinThread\CWinThread.cpp (4281, 2008-03-04)
CWinThread\CWinThread.dep (660, 2008-03-04)
CWinThread\CWinThread.dsp (4767, 2008-03-04)
CWinThread\CWinThread.dsw (543, 2008-03-04)
CWinThread\CWinThread.h (1400, 2008-03-04)
CWinThread\CWinThread.mak (6281, 2008-03-04)
CWinThread\CWinThread.ncb (74752, 2008-07-22)
CWinThread\CWinThread.plg (1181, 2008-07-22)
CWinThread\CWinThread.rc (10609, 2008-03-04)
CWinThread\CWinThreadDoc.cpp (1822, 2008-03-04)
CWinThread\CWinThreadDoc.h (1519, 2008-03-04)
CWinThread\CWinThreadView.h (1955, 2008-03-04)
CWinThread\MainFrm.cpp (2511, 2008-03-04)
CWinThread\MainFrm.h (1581, 2008-03-04)
CWinThread\res\CWinThread.ico (1078, 2008-03-04)
CWinThread\res\CWinThread.rc2 (402, 2008-03-04)
CWinThread\res\CWinThreadDoc.ico (1078, 2008-03-04)
CWinThread\res\Toolbar.bmp (1078, 2008-03-04)
CWinThread\Resource.h (498, 2008-03-04)
CWinThread\StdAfx.cpp (212, 2008-03-04)
CWinThread\StdAfx.h (1052, 2008-03-04)
CWinThread\CWinThread.aps (28588, 2008-07-22)
CWinThread\CWinThreadView.cpp (2929, 2008-07-22)
CWinThread\CWinThread.opt (49664, 2008-07-22)
CWinThread\res (0, 2008-03-04)
CWinThread (0, 2008-03-04)

近期下载者

相关文件


收藏者