Re: Question about call_function
Willi Schinmeyer <[email protected]> Fri, 28 Dec 2012 16:27:36 +0100
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
On 12/27/2012 6:11 PM, Залунин Сергей Александрович wrote: > Hello, Luabind-user. > > Next code return error message: exception: luabind::cast_failed at memory location 0x003ff68c.. > > luabind::call_function<char>(myLuaState, "add", "1", "2") You're trying to cast a string to char, when it should be char* or std::string. Try call_function<string>(myLuaState, "add", "1", "2") ------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 _______________________________________________ luabind-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luabind-user