Monday, March 22, 2010

AIR to DLL

Hi,

I need to connect from AIR application to some computational libraries (DLL on Windows or SO on Unix)

which are originally written in C (not .NET), we have an API, not the source code.

Is it possible to do via Alchemy ?

Can I write a little program in C++ (which will be calling that DLL library)

and compile it with Alchemy tools聽 to talk to AIR app ?

Will it allow passing objects between AIR and C++ ?

If not, what other options exist to implement that AIR-to-DLL ?

TIA,

Oleg.

AIR to DLL

All binaries used in alchemy need to be compiled for the alchemy virtual machine, which is a separate platform from windows.聽 If you have DLLs, these are compiled for windows, and you cannot link to them with alchemy code.

You could try to decompile the dll into C code and recompile it with alchemy.聽 There are tools which exist to decompile binaries into C code.聽 However, you may find it easier to write some kind of adaptor application -outside- of alchemy, which links to the DLL, and have the adaptor talk with your flash application via e.g. a socket.

No comments:

Post a Comment