我正在尝试使用 Irrlicht 创建一个程序,该程序从用 Lua 编写的配置文件中加载某些内容,其中之一是窗口标题。 However, the lua_tostring
function returns a const char*
while the Irrlicht device’s method setWindowCaption
expects a const wchar_t*
.如何转换 lua_tostring
返回的字符串?
原文由 Giaphage47 发布,翻译遵循 CC BY-SA 4.0 许可协议
SO上有多个问题可以解决Windows上的问题。示例帖子:
在 http://ubuntuforums.org/showthread.php?t=1579640 上发布了一个与平台无关的方法。本站出处为(希望没有侵犯版权):