View unanswered posts | View active topics


Reply to topic  [ 2 posts ] 
Using external libs and DLLs with HAXE 
Author Message
Member

Joined: Tue May 01, 2012 3:53 pm
Posts: 1
Post Using external libs and DLLs with HAXE
I want to make a C++ application with haxe using flash develop. This application need some specific DLLs. Where under project properties do I set my library paths and includes?
Thank you, Chris


Tue May 01, 2012 4:20 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10726
Location: Paris, France
Post Re: Using external libs and DLLs with HAXE
Your question is dragging a whole lot of concepts on the table :)

On FD side is pretty simple: just use the haxe class which will load and call a NDLL.

Which means you have to develop a "native extension". Such extension is composed of:
- some haxe classes (glue code) wrapping a NDLL,
- C++ code compiled as the NDLL (ie. a dll) wrapping the DLL you want to link to.

To link in your DLL you'll have to be fiddle in the extension's Build.xml.

As a simple example I suggest you look into hxSerial:
https://github.com/andyli/hxSerial

PS: this extension is a 'haxelib' but an extension doesn't have to be one, you can ignore 'haxelib.xml' and stuff.

For more information you'll have to discuss that in haxe mailing list.


Tue May 01, 2012 7:37 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.