本文介绍了Createthread()例程函数返回类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CreateThread()例程函数参数作为输入我想传递具有返回类型而非void的参数。我怎么做 ?



问题2.我也想传递参数。我怎么做 ?



总是最好的意图。先谢谢了。



我尝试了什么:



我试过搜索startPage.com但我没有找到任何满意的结果。

谢谢

CreateThread() Routine Function Parameter as input i want to pass parameter which has return type and not void. How do i do that ?

Question 2. I also want to pass arguments. How do i do that ?

best intentions always. Thanks in advanced.

What I have tried:

I Tried to search startPage.com but i did not found any satisfaction result.
Thanks

推荐答案

void coolTheadFunc( void* data){
 //prepare the param
  DataStruct*params = (DataStruct*) data;
  myFunctionWithParams( ...);
}





点击一段时间后你会发现这个,如jeron所做的那样。



After clicking a while you would had found this example as jeron did.



这篇关于Createthread()例程函数返回类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 12:50