[問題] createthread
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
<Windows.h>
<process.h>
問題(Question):
小弟是windows新手
以下是CreatetThread的格式
HANDLE hThread = CreateThread(
NULL, // Security Attributes
0, // Thread Stack size ( 0 for default size )
threadStart, // thread function address
param, // parameter to thread ( coerced to void* )
0, // Creation flags
&tid // where to store thread id
);
如果我要create一個thread 要執行一個multi parameter function
請問要怎麼寫呢?
本來是想說寫一個struct傳進去 , 可是VC++ 一直說型態不符
請板上高手教一下
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.66.184
→
12/05 16:08, , 1F
12/05 16:08, 1F
推
12/05 16:47, , 2F
12/05 16:47, 2F
→
12/05 16:59, , 3F
12/05 16:59, 3F
推
12/05 19:25, , 4F
12/05 19:25, 4F
→
12/05 20:07, , 5F
12/05 20:07, 5F
推
12/06 15:40, , 6F
12/06 15:40, 6F
→
12/06 15:41, , 7F
12/06 15:41, 7F
推
12/06 16:28, , 8F
12/06 16:28, 8F
推
12/06 16:44, , 9F
12/06 16:44, 9F
→
12/06 17:40, , 10F
12/06 17:40, 10F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章