将多个参数传递给CreateThread [英] Pass more than one argument to CreateThread

查看:68
本文介绍了将多个参数传递给CreateThread的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:

_COM_SMARTPTR_TYPEDEF(Range,__uuidof(Range));

RangePtr pRange;//通过pRange

建议:

推荐答案

创建这两种类型的结构,并将指针传递给它.这是标准通过单个指针将数据传递到线程的方法.

create a structure of these two types and pass a pointer to it. This is the standard way of passing data to threads over single pointer.

这篇关于将多个参数传递给CreateThread的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆