在表单中运行.exe应用 [英] run .exe app inside form

查看:93
本文介绍了在表单中运行.exe应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在网络IDS(入侵检测系统)上工作,我的项目的一部分包括基于主机的IDS(类似SNORT)并在我的项目表单中运行...所以如何在c#表单中运行snort.exe? ? (上午使用Visual Studio 2010).


以我的敬意...

解决方案

处理.Start方法 [ ^ ]


如果我正确理解了这个问题,那么luisnike19为您提供了答案. Process.Start将执行您的执行,如果您需要应用程序与刚启动的应用程序之间的通讯,它将变得更加棘手,并且您将必须实施某种形式的IPC,您可以使用WCF,Sockets,.NET Remoting(旧版但是,可能不是).或者您可以写入标准输入并从标准输出中读取内容以进行通信,但是我不喜欢这种技术.

如果您需要这两个应用程序之间的通信,并且无法通过google或CP找到自己的东西,请发表评论,我会给您几篇文章.

i am work on network IDS(INTRUSION DETECTION SYSTEM) and part of my project is include host based IDS(LIKE SNORT) and run it inside my project form ... so how can i run snort.exe inside c# form?? (am using visual studio 2010).


with my respect ...

解决方案

Process.Start Method[^]


If I understand the question correctly, then luisnike19 provided you with the answer. Process.Start will execute your execute, if you require communition between your application and the one you just started it becomes more tricky and you''ll have to implement some form of IPC, you could use WCF, Sockets, .NET Remoting(legacy though, so probably not).. or you could write to standard input and read from standard output to do the communication, however I don''t like that technique.

If you need communication between the two applications and can''t find something yourself through google or CP leave a comment and I''ll give you a few articles.


这篇关于在表单中运行.exe应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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