Hi ,
This is just another 'note' / memo
Can this be fixed - that some function in the C++ API are O.K. with the
'const' and
I don't need to const_cast<char *>(str)
In other words: I get this error message:
error C2664: 'PyDict_SetItemString' : cannot convert parameter 2 from 'const
char *' to 'char *'
and I can get around it by substituting
PyDict_SetItemString(globals, wxString::Format("scrButt%d", 800+i).c_str(),
obj);
with
PyDict_SetItemString(globals, const_cast<char
*>(wxString::Format("scrButt%d", 800+i).c_str()), obj);
PyDict_SetItemString should be defined to require "const char *" instead of
"char *"
There are probably many other functions with a similar problem.
This is just a note for the greater good (and the advancement of open
source)
Great work,
Thanks,
Sebastian