|
|
Label: ♦english
♦news
fu
created at Saturday, 2010-04-03, 06:39:04
0 Replies, 1382 Hits
The codes for this example can be found in the svn repository of Dao on Google Codes: http://code.google.com/p/dao-language/source/browse/#svn/trunk/demo/embedding .
This example shows how to wrap C functions and C++ classes. The wrapping can allow deriving Dao classes from C++ classes with the possibility to re-implement C++ virtual functions. The wrapping codes are generated by the autobind.dao tool, so if you want to know how other data types and functions should be wrapped, just put them in the greeting.h file and then run make bind , the generated codes will show you how to wrap them! This example also shows you how to embed Dao, and use proper C interfaces of Dao to run Dao scripts stored in C string. It can be used as a starting point, to get to know more about the C interfaces of Dao, one may simply look into the head file dao.h of the Dao library. Comments
|
fu: ... I forgot to say something about the plan for the whole new year in my previous reply. Well, besides w ... (Jan.19,01:40) fu: ... Happy new dragon year (which will start from this sunday)! Actually, it was a busy month (I wish th ... (Jan.18,22:46) ybabel: What's the plan for the new year ? Hello 'vry budy :- ) happy new year (when is the new year for you Fu ?) I saw you come back and comm ... (Jan.18,18:59) |