We sometimes get asked for help with putting ANEs for Windows together, build automation and debugging. The inspiration for this tutorial came from Eric Zwar, who bought our eBook Easy Native Extensions, which has examples for iOS, and heroically applied its principles to making an AIR Native Extension for Windows.
Thank you, Eric! I hope you like this one.
What goes into an ANE for Windows?
The Windows structure of an ANE is peculiar with the fact that it requires native code to be built into a dynamic-link library, DLL. This is in contrast to iOS and Mac OS, where the native implementation is built into a static library (.a).
Here is a bird’s eye view of an ANE for Windows:
An old blog post of ours contains more diagrams and will show you details of what goes into the DLL: What goes into an AIR Native Extension for Windows?
How is this tutorial organised?
We will build a Windows ANE together in stages. Each stage will be published in a blog post and each blog post will be listed below as it becomes public. If you are reading this in the future and the whole tutorial is out, feel free to jump to a particular part and use it as a reference.
- Part 1: The native DLL project, 8-10 minutes
- Part 2: The Native DLL code, 10-15 minutes
- Part 3: Set up the AIR Library – 8-10 minutes
- Part 4: Packaging the ANE – 10-12 minutes
- Part 5: Testing the ANE – 12-15 minutes
- Part 6: Debugging the ANE – 15-20 minutes
Ready for kick-off?
Start here.
Buy any Easy Native Extensions 2nd Edition package and get our $99 iOS + Android ANE Template completely free before the end of June 2015.
- step-by-step guide to making your iOS extension in under an hour
- library for data conversion between ActionScript and native code
- tutorials
- infographics
- code included
Leave a Reply