简体   繁体   English

从Flex3 Air打开exe文件

[英]Open exe file from Flex3 Air

I have .exe file, which is done in VB. 我有.exe文件,该文件在VB中完成。 i need to open or hit that exe file from Flex3 air application on Button Click event. 我需要在Button Click事件中从Flex3 air应用程序打开或命中该exe文件。

i need to simple hit that exe file to run, no need to open inside the air applcation. 我需要简单地点击该exe文件即可运行,而无需在空中打开应用程序。

How to hit the exe file in Air app...? 如何在Air应用中打exe文件...?

Thanks in Advance 提前致谢

Air itself does not provide the ability to launch external applications (I see this as a significant problem with AIR). Air本身不提供启动外部应用程序的能力(我认为这是AIR的一个重大问题)。

Some people have created a hack that would allow you to do this and provided it as a library, though I'm not sure how reliable it is (it does some weird things with the way Windows loads DLLs that I'm not sure I completely trust). 有些人创建了一个允许您执行此操作的hack,并将其作为库提供,尽管我不确定它的可靠性(它与Windows加载DLL的方式有些奇怪,但我不确定我是否完全信任)。

Aperture framework: http://aperture.fluorinefx.com/ Aperture框架: http//aperture.fluorinefx.com/
Blog discussing the implementation: http://blog.fluorinefx.com/?tag=native 讨论实现的博客: http : //blog.fluorinefx.com/?tag=native

As Herms said, AIR doesn't allow you to do that. 正如Herms所说,AIR不允许您这样做。 However, Java does and you can connect your AIR app with Java using merapi . 但是,Java确实可以,您可以使用merapi将AIR应用程序与Java 连接

For now, the best and easiest way to do this is, as Amarhosh said, to use Merapi. 目前,如Amarhosh所说,最好的和最简单的方法是使用Merapi。 Or you can wait to AIR 2.0 (the end of 2009) which will bring native access support. 或者,您可以等待AIR 2.0(2009年底)来提供本机访问支持。

AIR 2.0将支持使用NativeProcess。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM