移植/编写 WPF 应用程序,从浏览器启动外部应用程序到 Silverlight 4
WPF 启动某些方法,该方法调用外部 exe 并等待,然后访问作为外部 exe 输出的文件。假设我在构建此应用程序时考虑稍后移植到 Silverlight 4,我应该做什么?
WPF launches certain method which calls external exe and waits , and then accesses a file which was an output of external exe. Assuming I would build this application with a consideration of porting to Silverlight 4 later what should I do ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了做到这一点,您需要经历 Silverlight 的 COM 自动化。我确信有一些进程外 COM 服务器可以用来启动进程。但那时您已经将
此时,您确实需要问移植到 Silverlight 是否有意义。 WPF特别适合以上场景。您可以使用 ClickOnce 实现类似(实际上是更高级)的客户端更新体验,并且您不必费力去做像生成外部进程这样简单的事情。
In order to do this you would need to go through Silverlight's COM automation. I'm sure there's some out-of-process COM server that you could use to start a process. But at that point you've already
At that point, you really gotta ask whether or not it makes any sense to port to Silverlight. WPF is particularly suitable for the above scenarios. You can use ClickOnce to achieve a similar (actually, superior) client update experience and you won't have to jump through hoops to do something as simple as spawning an external process.