用MessageBoxw显示阿拉伯文字
我正在学习API编程并使用“ MessageBoxw”来显示阿拉伯语Unicode字符,但是这个小程序未能正确显示阿拉伯字符,而不是这样显示字符没有意义:
#include <windows.h>
#include <tchar.h>
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
MessageBoxW (NULL, _TEXT (L"بسم الله الرحمن الرحيم"), _TEXT (L"HelloMsg"), 0) ;
return 0 ;
}
I'm learning API programming and used "MessageBoxW" to show Arabic unicode characters but this small program failed to show the Arabic characters correctly and rather of that it shows characters have no sense:
#include <windows.h>
#include <tchar.h>
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
MessageBoxW (NULL, _TEXT (L"بسم الله الرحمن الرحيم"), _TEXT (L"HelloMsg"), 0) ;
return 0 ;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论