Alberto Iglesias Well-Known Member Licensed User Longtime User Jan 2, 2020 #1 anyone knows the best way to convert char* to B4RString* ?? I need to send back to B4R this string, but is coming in char* format B4X: myLib.onState([](const char * name) { b4r_main::_mysub(name); <=== this is incorrect! } and on B4R I have: B4X: Sub MySub(pText As String) Log(pText) End Sub
anyone knows the best way to convert char* to B4RString* ?? I need to send back to B4R this string, but is coming in char* format B4X: myLib.onState([](const char * name) { b4r_main::_mysub(name); <=== this is incorrect! } and on B4R I have: B4X: Sub MySub(pText As String) Log(pText) End Sub
Erel B4X founder Staff member Licensed User Longtime User Jan 2, 2020 #2 B4X: B4R::B4RString s; s.wrap(name); b4r_main::_mysub (&s); Upvote 0
Alberto Iglesias Well-Known Member Licensed User Longtime User Jan 2, 2020 #3 thank you so much @Erel Upvote 0