注册 登录
编程论坛 C++教室

waitforsingleobject()里面的时间参数究竟是什么意思???

tttt870226 发布于 2011-08-11 12:24, 601 次点击
CEvent comeventend;
int retCode=::waitforsingleobject(comeventend.m_hobject,0);
这个0 是什么意思?能换成1000吗?能那又是什么意思?retcode最后得到什么值?
5 回复
#2
tttt8702262011-08-11 12:25
请给位帮个忙
#3
rjsp2011-08-11 15:13
你不会查MSDN呀,你不会Google呀
#4
tttt8702262011-08-11 15:29
回复 3楼 rjsp
看了一些还是不太明白,时间到底有什么作用。
#5
玩出来的代码2011-08-11 19:45
等待超时时间。设置为0设置为1000都可以的,但要看他的本意是什么了,设置为0可能就是只想知道此刻这个对象是否已触发。
#6
tttt8702262011-08-18 13:13
去问问
1