How to use external Dll in Air Native Extension?

The structure of my ANE file looks like this:

<META-INF>
    <ANE>
        <Windows-x86>
            ExtensionDll.dll
            DllUsedByExtensionDll.dll
        extension.xml
mimetype
catalog.xml
library.swf

If ExtensionDll.dll uses functions in another Dll, the extension does not load. DllMain is not called. It seems that DllUsedByExtensionDll.dll is not in the Dll search path when the application is using the extension.

How do I get an application to find additional Dlls if I don't want to put them in some common Dll path?

+5
source share
2 answers

I had the same problem and went for it a few days. It turns out there are two ways to solve this problem.

  • Export Release Build, make sure that DllUsedByExtensionDll.dll is packaged in the same directory as your executable file.
  • DllUsedByExtensionDll.dll bin Adobe AIR SDK, Air Debug Launcher (adl).

DllUsedByExtensionDll.dll ANE, .

, ExtensionDll.dll DllUsedByExtensionDll.dll, , AIR SDK. , , DLL .

, , , adl.

, Flash Builder debug/run, , Windows " , DLL". .

+6

dll dll, dll , ANE.

0

All Articles