Hello devs!
I have this code below:
std::wstring stdwstr(stdstr.begin(), stdstr.end()); ON_wString script; script.Format(L"_-Open \"%ls\" _Enter", stdwstr.c_str()); RhinoApp().RunScript(context.m_doc.RuntimeSerialNumber(), script.Array());
where stdstr = is a std::string
The resulting command in Rhino is three different commands:
1- _-Open
2- The path passed to format
3- _Enter
Is there a reason why this is happening? And what’s the sane way to work with those wide strings that complicate all the code base?
Thanks
2 posts - 2 participants