• Content count

  • Joined

  • Last visited

Community Reputation

105 Neutral

About CDarwin

  • Rank
  1. Thanks a lot Gambini,   I've tried your suggestion but I'm still getting compiler errors. Any other suggestions?   out_value(_1) causes the following error:   [SOURCE] error C2352: 'luabind::native_converter_base<T>::match' : illegal call of non-static member function[/SOURCE]   out_value(_2) causes the following:   [SOURCE]error C2664: 'void (char *)' : cannot convert parameter 1 from 'const char *' to 'char *'[/SOURCE]
  2. Hello,   I'm pretty new to luabind. I'm having a little problem binding one of my string functions(convert to uppercase). Just couldn't figure it out.   [source]void STools::UCase(char *txt) { for (;;) { u_int32 t = *reinterpret_cast(txt); ... txt++; } } [/source] Here's the luabind code  [source]luabind::module(myLuaState) [     luabind::def("convert_upper", STools::UCase)   ]; [/source] Compiler Error    [source]error C2664: 'void (char *)' : cannot convert parameter 1 from 'const char *' to 'char *' [/source]   Any help is appreciated!