From: Steve K. <ha...@ya...> - 2006-05-24 11:10:46
|
Reading the source wxlbind.h I fixed the compile error by adding %delete %encapsulate before %noclassinfo in the %class def line Cheers, Steve Kieu <ha...@ya...> wrote: Hi, I was successful in binding wxAUI to wxLua but got problem when trying to bind wxFoldPanelBar, and then I found it is a normal symptom with code generated by genwxbind. I have to make two very simple class and bind it to test. The problem is: If I have a class 'standalone' means not derived from wxObject ; so I need to add %noclassinfo, in the %class def right? Then I have a class derived from wxObject, that class has a member function to return the above (standalone) class. wxgenbind will generate code which has the method wxLua_AddToTrackedMemoryList(wxLuaState&, wxObject*) but instead of wxObject it return the 'standalone' class and compile will give errors like ... test.cpp:53: error: no matching function for call to ` *** wxLua_AddToTrackedMemoryList(wxLuaState&, crypto*)' *** wxlua/include/wxlbind.h:173: error: candidates are: void *** wxLua_AddToTrackedMemoryList(wxLuaState&, wxObject*) Did I do something wrong or is this a bug in genwxbind in wxLua 2.6.2.0? Cheers, S.KIEU --------------------------------- Do you Yahoo!? Yahoo! Personals: It's free to check out our great singles! S.KIEU --------------------------------- On Yahoo!7 Answers: Real people ask and answer questions on any topic. |