文件名称:ThreadTest
介绍说明--下载内容均来自于网络,请自行研究使用
找了很久网上都没有找到在C++ Builder (我用的是XE2 )开发用CreateThread((LPSECURITY_ATTRIBUTES)0,0,(LPTHREAD_START_ROUTINE)Settle,this,0,&id)开启一个线程。现在终于我自己研究出来了。你可以ThreadTest\Win32\Debug\Project1.exe来运行程序,里头有两个可以运行的线程可以开启和挂起和结束。-Looking for a long-time did not find (I use the in C++ Builder XE2) development CreateThread ((LPSECURITY_ATTRIBUTES) 0,0, (LPTHREAD_START_ROUTINE) Settle, this, 0, & id) open a thread. Now finally my own research. You can to it ThreadTest \ Win32 \ Debug \ the Project1.exe come to run the program, inside there are two threads running on and hang and end.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Project1.res
ThreadTest.cpp
ThreadTest.dfm
ThreadTest.h
Win32\Debug\Project1.#00
.....\.....\Project1.exe
.....\.....\Project1.ilc
.....\.....\Project1.ild
.....\.....\Project1.ilf
.....\.....\Project1.ils
.....\.....\Project1.map
.....\.....\Project1.obj
.....\.....\Project1.pdi
.....\.....\Project1.tds
.....\.....\ThreadTest.obj
.....\Debug
Win32
Project1.cbproj
Project1.cbproj.local
Project1.cpp