将system()函数更改为string [英] change system() function to string
本文介绍了将system()函数更改为string的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨大家好
i想要使用系统(ping XXXX)
但是我想在Cstring obj中使用这个ping的答案
或在文本框中写这个ping
我怎么做?
hi every body
i want to use system("ping X.X.X.X")
but i want to use the answer of this ping in Cstring obj
or write this ping in a text box
how i can do it?
推荐答案
你用Google搜索了吗?请尝试以下网址
如何解析c#的命令行输出? [ ^ ]
对于C ++版本试试这个
CreateProcess和CreatePipe执行进程并在VC ++中以字符串形式返回输出 [ ^ ]
Did you googled? Try below url
How to parse command line output from c#?[^]
For C++ Version Try this
CreateProcess and CreatePipe to execute a process and return output as a string in VC++[^]
这篇关于将system()函数更改为string的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文