CWinThread与多线程使用

上传者: boluo1982107 | 上传时间: 2021-07-06 08:58:57 | 文件大小: 27KB | 文件类型: RAR
这是一个关于CWinThread以及利用继承自CWinThread使用多线程的程序!1,尽量使用DECLARE_DYNCREATE,这样能够动态创建。2,继承自CWinThread,所以可以使用CreateThread()函数进行线程创建,在最开始我被书上的AfxBeginThread(RUNTIME_CLASS(CMyClass))误导了,还以为一定要按照这种方式创建线程呢。3,查MSDN的同时,也要注意思考C++的机制,这样才能有的放矢地顺利解决问题。

文件下载

资源详情

[{"title":"( 28 个子文件 27KB ) CWinThread与多线程使用","children":[{"title":"CWinThread","children":[{"title":"StdAfx.cpp <span style='color:#111;'> 212B </span>","children":null,"spread":false},{"title":"CWinThread.clw <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"CWinThread.rc <span style='color:#111;'> 10.36KB </span>","children":null,"spread":false},{"title":"CWinThread.plg <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"CWinThread.dsp <span style='color:#111;'> 4.66KB </span>","children":null,"spread":false},{"title":"CWinThreadView.cpp <span style='color:#111;'> 2.86KB </span>","children":null,"spread":false},{"title":"CWinThreadDoc.h <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"MainFrm.h <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"CWinThread.dsw <span style='color:#111;'> 543B </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 4.30KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"CWinThread.ncb <span style='color:#111;'> 49.00KB </span>","children":null,"spread":false},{"title":"CWinThread.cpp <span style='color:#111;'> 4.18KB </span>","children":null,"spread":false},{"title":"MainFrm.cpp <span style='color:#111;'> 2.45KB </span>","children":null,"spread":false},{"title":"Resource.h <span style='color:#111;'> 498B </span>","children":null,"spread":false},{"title":"CWinThreadView.h <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"CWinThreadDoc.cpp <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"CMyClass.cpp <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"CWinThread.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"CWinThread.rc2 <span style='color:#111;'> 402B </span>","children":null,"spread":false},{"title":"Toolbar.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"CWinThreadDoc.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":false},{"title":"CWinThread.dep <span style='color:#111;'> 660B </span>","children":null,"spread":false},{"title":"readme2.txt <span style='color:#111;'> 356B </span>","children":null,"spread":false},{"title":"CWinThread.h <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"CMyClass.h <span style='color:#111;'> 202B </span>","children":null,"spread":false},{"title":"CWinThread.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"CWinThread.mak <span style='color:#111;'> 6.13KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • laoniuq :
    可以看看线程的工作机制
    2018-11-24
  • liyilulihua :
    入门级的学习还是不错的
    2015-05-27
  • twz8979 :
    不错 很详细,谢谢了
    2014-11-26
  • bobliuda :
    入门级代码,对初学者帮助较大,不错。
    2014-08-25
  • gw786228836 :
    入门级的 还行
    2014-06-04

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明