文件名称:CWinThread.rar
-
所属分类:
- 标签属性:
- 上传时间:2012-09-04
-
文件大小:37.54kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
这是一个关于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
CWinThread/CMyClass.h
CWinThread/CWinThread.clw
CWinThread/CWinThread.cpp
CWinThread/CWinThread.dep
CWinThread/CWinThread.dsp
CWinThread/CWinThread.dsw
CWinThread/CWinThread.h
CWinThread/CWinThread.mak
CWinThread/CWinThread.ncb
CWinThread/CWinThread.plg
CWinThread/CWinThread.rc
CWinThread/CWinThreadDoc.cpp
CWinThread/CWinThreadDoc.h
CWinThread/CWinThreadView.h
CWinThread/MainFrm.cpp
CWinThread/MainFrm.h
CWinThread/ReadMe.txt
CWinThread/readme2.txt
CWinThread/res/CWinThread.ico
CWinThread/res/CWinThread.rc2
CWinThread/res/CWinThreadDoc.ico
CWinThread/res/Toolbar.bmp
CWinThread/Resource.h
CWinThread/StdAfx.cpp
CWinThread/StdAfx.h
CWinThread/CWinThread.aps
CWinThread/CWinThreadView.cpp
CWinThread/CWinThread.opt
CWinThread/res
CWinThread
CWinThread/CMyClass.h
CWinThread/CWinThread.clw
CWinThread/CWinThread.cpp
CWinThread/CWinThread.dep
CWinThread/CWinThread.dsp
CWinThread/CWinThread.dsw
CWinThread/CWinThread.h
CWinThread/CWinThread.mak
CWinThread/CWinThread.ncb
CWinThread/CWinThread.plg
CWinThread/CWinThread.rc
CWinThread/CWinThreadDoc.cpp
CWinThread/CWinThreadDoc.h
CWinThread/CWinThreadView.h
CWinThread/MainFrm.cpp
CWinThread/MainFrm.h
CWinThread/ReadMe.txt
CWinThread/readme2.txt
CWinThread/res/CWinThread.ico
CWinThread/res/CWinThread.rc2
CWinThread/res/CWinThreadDoc.ico
CWinThread/res/Toolbar.bmp
CWinThread/Resource.h
CWinThread/StdAfx.cpp
CWinThread/StdAfx.h
CWinThread/CWinThread.aps
CWinThread/CWinThreadView.cpp
CWinThread/CWinThread.opt
CWinThread/res
CWinThread
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.