Answer the question
In order to leave comments, you need to log in
Why does an inference error occur after type conversion?
Machinarium::DataStorages::SelfContainStorage::GetPathToRunningObject()
returns this type of pathconst std::string s = Machinarium::DataStorages::SelfContainStorage::GetPathToRunningObject().string();
std::cout << s.size() << ' ' << s.length() << std::endl;
std::cout << s << std::endl;
lua_pushlstring(L, s.c_str(), s.length() - 1);
lua_setglobal(L, "ProgramRunningPath");
$ 59 59
�| ��|
���m8} ifm!��|
���m�} inlicen
�| ��|
���m8} ifm!��|
���m�} inlicen
Running SelfRunningObjectStorageApi Payload. Unix
/home/ubuntu/workspace/cpp.machinarium/bin/Release/licenses
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question