On Sun, Dec 25, 2011 at 1:27 PM, klaas.holwerda <[email protected]> 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 same type as NULL maybe?
Maybe the best way is to cast it to wxChar*.
Does this work as a fix? I can't test it now.
bindings/genwxbind.lua line 3443
if (argType == "wxChar") then
argTypeWithAttrib = "wxString "
-- argListOverride = argName..".IsEmpty() ? NULL : "..argName..".c_str()"
-- change to
argListOverride = argName..".IsEmpty() ? (wxChar*)NULL :
"..(wxChar*)argName..".c_str()"
end
Regards,
John
------------------------------------------------------------------------------
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