可以从Adobe AIR调用本机DLL吗? [英] Is it possible to call a native DLL from Adobe AIR?

查看:174
本文介绍了可以从Adobe AIR调用本机DLL吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显然,可能使用 NativeProcessInfo调用AIR的本地可执行文件。但是AIR AIR应用程序可以直接调用DLL吗?

Apparently it is possible to call a native executable from AIR using NativeProcessInfo. But can an AIR app call a DLL directly?

一种可能性是将DLL包装为某种代理EXE,但是如果可能,我想避免

One possibility is to wrap the DLL is some kind of proxy EXE, but I'd like to avoid that, if possible.

推荐答案

通过调用DLL,您必须意味着检索指向某个DLL函数的指针并调用它。但是如何在AIR应用程序中执行本机代码? AIR可以在单独的进程中运行可执行文件,但是如何从DLL中的本机代码执行?您绝对需要代理执行该操作,至少为函数调用提供环境。

By "call a DLL" you must be meaning retrieve pointer to some DLL function and invoke it. But how native code should execute in AIR application? AIR can run executables in separate processes, but what should it do with native code from DLL? You definitely need proxy exe to do that, at least to provide environment for function calls.

这篇关于可以从Adobe AIR调用本机DLL吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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