|
|
_beginThreadex创建多线程解读
一、需要的头文件支持
#include <process.h> // for _beginthread()
需要的设置:ProjectàSetting-->C/C++-->User run-time library 选择Debug Multithreaded 或者Multithreaded。即使用: MT或MTD。
源码如下:
<div style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #e7e5dc; width: 687.0499877929688px; overflow: auto; padding-top: 1px; color: #333333; line-height: 26px; margin: 18px 0px !important;" class="dp-highlighter bg_cpp"><div style="padding-left: 45px;" class="bar"><div style="padding: 3px 8px 10px 10px; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; background-color: #f8f8f8; border-left-width: 3px; border-left-style: solid; border-left-color: #6ce26c;" class="tools">[cpp] view plaincopy<div style="width: 18px; height: 18px;"> |
|