C++ 中的 Unicode 问题exe (MSVC++2010)
我有一个奇怪的问题,我不知道它从哪里来。我可能更改了 MSVC++2010 项目中的一些设置,但这对我来说看起来都很好。
我目前正在试验 Windows SDK 6.1 中包含的 VSHADOW.EXE 3.0 工具。这是一种用C++编写的备份程序,其中的字符串由wchar_t
组成。现在,我传递给程序的参数(例如 -q
)总是会在程序中产生日语符号字符串。如果我通过 cmd 正常启动程序,而且在 Visual Studio 项目设置中指定命令行参数并启动调试器,也会发生这种情况。
有人知道如何解决这个问题吗?谢谢!
I have a strange problem which I don't know where it came from. I might have changed some settings in the MSVC++2010 project but it all looks good to me.
I'm currently experimenting with the VSHADOW.EXE 3.0 tool included with Windows SDK 6.1. This is a sort of backup program written in C++ and the strings in it are composed of wchar_t
s. Now, my arguments (such as -q
) which I pass to the program always result in strings of japanese symbols in the program. This occurs if I start the program normally via cmd, but also if I specify commandline arguments in the Visual Studio project settings and start the debugger.
Does someone have an idea how to solve this problem? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题解决了,我将
wmain
更改为main
进行测试,但忘记将其改回来。Problem solved, I changed
wmain
tomain
for a test and forgot to change it back.