24小时热门版块排行榜    

CyRhmU.jpeg
查看: 261  |  回复: 1
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

susufairy

铁杆木虫 (正式写手)

[求助] call external program in a win32 application

I am developing a win32 application using Qt. Right now my application has to call a program that operate an extrenal machine connected to PC using serial port and let the machine to read some optical density data and then export that data to my application. I am using QProcess and it successfully launches that external program. My questions are: how my program ask that external program to perform the menu operations like "read optical density" and "export data" so that my program can get the optical density data. Thanks a lot for the help and nice day!
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yalefield

金虫 (文坛精英)

老汉一枚

【答案】应助回帖


感谢参与,应助指数 +1
jjdg(金币+1): 感谢参与 2012-03-03 02:29:02
ben_ladeng(专家考核): 2012-03-04 10:41:56
There are several ways to build up communications among applications.
However, they depend on the functions of the applications, which means you may not be able to talk to a running program when it cannot receive and response to your callings.
As to your question, one simple appraoch is to read the files the external program wrote/exported. This is absolutely slow....
Unless you have the source code of the external program or it has the function to set up communications to your codes.
2楼2012-03-02 20:09:45
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 susufairy 的主题更新
信息提示
请填处理意见