文件名称:CWinThread
介绍说明--下载内容均来自于网络,请自行研究使用
这是一个关于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.
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
..........\CMyClass.h
..........\CWinThread.aps
..........\CWinThread.clw
..........\CWinThread.cpp
..........\CWinThread.dep
..........\CWinThread.dsp
..........\CWinThread.dsw
..........\CWinThread.h
..........\CWinThread.mak
..........\CWinThread.ncb
..........\CWinThread.opt
..........\CWinThread.plg
..........\CWinThread.rc
..........\CWinThreadDoc.cpp
..........\CWinThreadDoc.h
..........\CWinThreadView.cpp
..........\CWinThreadView.h
..........\MainFrm.cpp
..........\MainFrm.h
..........\ReadMe.txt
..........\readme2.txt
..........\res
..........\...\CWinThread.rc2
..........\Resource.h
..........\StdAfx.cpp
..........\StdAfx.h
..........\CMyClass.cpp
..........\CMyClass.h
..........\CWinThread.aps
..........\CWinThread.clw
..........\CWinThread.cpp
..........\CWinThread.dep
..........\CWinThread.dsp
..........\CWinThread.dsw
..........\CWinThread.h
..........\CWinThread.mak
..........\CWinThread.ncb
..........\CWinThread.opt
..........\CWinThread.plg
..........\CWinThread.rc
..........\CWinThreadDoc.cpp
..........\CWinThreadDoc.h
..........\CWinThreadView.cpp
..........\CWinThreadView.h
..........\MainFrm.cpp
..........\MainFrm.h
..........\ReadMe.txt
..........\readme2.txt
..........\res
..........\...\CWinThread.rc2
..........\Resource.h
..........\StdAfx.cpp
..........\StdAfx.h