问题描述
显然,。但是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吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!