From: John L. <jla...@gm...> - 2011-12-26 03:45:27
|
On Sun, Dec 25, 2011 at 1:27 PM, klaas.holwerda <ng...@kl...> 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 |