crossbridge-community / crossbridge

C/C++ Compiler for the ActionScript Virtual Machine (AVM2)
http://sourceforge.net/projects/crossbridge-community/
Other
151 stars 35 forks source link

Accesing Win32 API from Crossbridge #88

Closed pol2095 closed 9 years ago

pol2095 commented 9 years ago

Hello,

I have to compile a C++ project using Crossbridge to create a swf. I am able to compile all the CPP files except those that uses Win32 API ("Windows.h"). I installed the api libraries on the cygwin folder but not on FlasCC sdk folder.

Thanks.

rainbowcreatures commented 9 years ago

That's not possible - if you want to work with Win32 API, you want to use AIR & native extensions (ANE's). Crossbridge compiles all the fancy C++ code into SWF for Flash Player, so even you can compile lots of C/C++ code you can't force Flash doing more than it can, like do stuff outside its sandbox.