为什么callnamedpipe()返回错误2? [英] why callnamedpipe() returns error 2?
本文介绍了为什么callnamedpipe()返回错误2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我第一次使用命名管道,事实并非如此.
当我在线程中调用callnamedpipe()
时,它返回错误0x00000002
,即"system cannot find the specified file"
.
有谁知道为什么会这样吗?
谢谢.
It''s my first time to use named pipe and it turns out not so well.
When I call callnamedpipe()
in my thread, it returns with error 0x00000002
, that "system cannot find the specified file"
.
Does anyone know why this happen?
Thanks.
推荐答案
检查传递给函数的管道名称(第一个参数).看看此 [
Check the pipe name (first parameter) you''re passing to the function. Have a look at this[^] sample code as well.
这篇关于为什么callnamedpipe()返回错误2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文