如何通过管道写入和读取信息 [英] how to write and read information via pipes

查看:62
本文介绍了如何通过管道写入和读取信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在msdev下用c在c中创建了管道

但是我不知道如何在它们之间交换数据.
您可以提供帮助吗..

i created pipe in c under msdev

But i don''t know how to exchange data between them..

can you help..

推荐答案

尝试以下链接:
http://www.cs.cf.ac.uk/Dave/C/node23.html [^ ]

http://www.academictutorials.com/ipc/ipc-communications-via-pipes.asp [^ ]

http://www.codeguru.com/cpp/wp/system/sharedmemory/article. php/c2879 [ ^ ]
Try the links:
http://www.cs.cf.ac.uk/Dave/C/node23.html[^]

http://www.academictutorials.com/ipc/ipc-communications-via-pipes.asp[^]

http://www.codeguru.com/cpp/w-p/system/sharedmemory/article.php/c2879[^]


请检查-
链接
Please check -
link


首先,为什么您再次发布类似的问题?请不要重新发布-它不会帮助您获得更好的答案.另外,您必须指出您正在使用的平台,而不是等到有人问您.您应该在问题的标签中指明(好吧,现在就做).同样,您是最感兴趣的人,因为它使相关答案的可能性更大.

要使用命名管道,您应该从这里开始:
http://msdn.microsoft.com/en-us/library/aa365590 (v = vs.85).aspx [ http://msdn.microsoft.com/en-us/library/aa365799 (v = vs.85).aspx [
First of all, why did you post the similar question again? Please, do not re-post — it does not help you to get better answers. Also, you had to indicate the platform you''re using instead of waiting until someone asks you. You should indicate in in the question''s tag (well, do it now). Again, you''re the one who is interested the most, as it makes relevant answers more likely.

To use named pipes, you should start from here:
http://msdn.microsoft.com/en-us/library/aa365590(v=vs.85).aspx[^].

Do you need code samples? Drill down and check:
http://msdn.microsoft.com/en-us/library/aa365799(v=vs.85).aspx[^]; all five links on this page presents the use cases with short and clear code samples.

When it comes to Windows development, always check MSDN first, as a rule of thumb.

—SA


这篇关于如何通过管道写入和读取信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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