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 XmlEncodeStringToStream( const wxChar *string, size_t len =
wxString::npos )
static int LUACALL wxLua_a2dIOHandlerXMLWrite_XmlEncodeStringToStream(lua_State
*L)
{
// get number of arguments
int argCount = lua_gettop(L);
// size_t len = wxString::npos
size_t len = (argCount >= 3 ? (size_t)wxlua_getuintegertype(L, 3) :
wxString::npos);
// const wxChar string
wxString string = wxlua_getwxStringtype(L, 2);
// get this
a2dIOHandlerXMLWrite * self = (a2dIOHandlerXMLWrite
*)wxluaT_getuserdatatype(L, 1,
wxluatype_a2dIOHandlerXMLWrite);
// call XmlEncodeStringToStream
self->XmlEncodeStringToStream(string.IsEmpty() ? NULL : string.c_str(),
len);
return 0;
}
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users