Re: [wxlua-users] binding issues

2011-12-26 Thread klaas.holwerda
Like this, it is oke: if (argType == "wxChar") then argTypeWithAttrib = "wxString " argListOverride = argName..".IsEmpty() ? (wxChar*)NULL : "..argName..".c_str()" end Tha

Re: [wxlua-users] binding issues

2011-12-25 Thread John Labenski
On Sun, Dec 25, 2011 at 1:27 PM, klaas.holwerda wrote: > Forgot the error itself, so one more same problem: > > > 1>..\..\..\..\..\..\..\packages\wxart2d\luawraps\src\artbase.cpp(2347) : > error C2446: ':' : no > conversion from 'wxCStrData' to 'int' The compiler wants c_str() converted to the s

Re: [wxlua-users] binding issues

2011-12-25 Thread klaas.holwerda
Forgot the error itself, so one more same problem: 1>..\..\..\..\..\..\..\packages\wxart2d\luawraps\src\artbase.cpp(2347) : error C2446: ':' : no conversion from 'wxCStrData' to 'int' static wxLuaArgType s_wxluatypeArray_wxLua_a2dDoMu_op_set1[] = { &wxluatype_a2dDoMu, &wxluatype_TSTRING, NUL

[wxlua-users] binding issues

2011-12-25 Thread klaas.holwerda
Hi John, I get the following error in the bindings, and wonder what to do?? string.IsEmpty() ? NULL : string.c_str() Changed to: string.c_str() or just string makes it compile. This happens i think in all cases where const wxChar *string is an argument. Like in here: // void XmlEncodeStr