我查了一下,在BCB的帮助文档里提到,考虑到线程可能使用C ++ RUNTIME LIBRARY,you must use the CW32MT.LIB or CW32MTI library insteadThe multithread libraries provide the following functions which you use to create threads:_beginthread _beginthreadex _beginthreadNTThe multithread libraries also provide the following corresponding functions that terminate threads:_endthread_endthreadex_threadid a global variable that contains the current identification number of the thread also known as the thread ID). The header file stddef.h contains the declaration of _threadid. When you compile or link a program that uses multiple threads, you must use the -tWM compiler switch. For example: BCC32 -tWM THREAD.C 大概就是这样吧;
我是问 _beginthreadex
是不是通用。。
在WIN32下,我一直用 createthread.
_beginthreadex
_beginthreadNTThe multithread libraries also provide the following corresponding functions that terminate threads:_endthread_endthreadex_threadid a global variable that contains the current identification number of the thread also known as the thread ID).
The header file stddef.h contains the declaration of _threadid.
When you compile or link a program that uses multiple threads, you must use the -tWM compiler switch. For example: BCC32 -tWM THREAD.C
大概就是这样吧;