Like this, it is oke:
if (argType == "wxChar") then
argTypeWithAttrib = "wxString "
argListOverride = argName..".IsEmpty() ?
(wxChar*)NULL :
"..argName..".c_str()"
end
Tha
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
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
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