RTL消息框中的问题 [英] Problem in RTL messagebox

查看:59
本文介绍了RTL消息框中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经显示了一个带有MB_RTLREADING标志的消息框。

我试图显示的字符串是:" Name(First Name)"

但是我得到的显示是(姓名(名字)>

用于消息框的语法如下:

MessageBox(NULL," Name(First Name)",good,MB_RTLREADING);


请建议我缺少什么设置?

Hi
I have displayed a messagebox with MB_RTLREADING flag.
The string that I tried to display is some thing like: "Name(First Name)"
However I am getting the display of "(Name ( First Name"

The syntax used for the messagebox was as follows:
MessageBox(NULL,"Name (First Name)","good",MB_RTLREADING );

Please suggest what setting i am missing?

推荐答案

没有人可以回答我的问题!!!所有专家在哪里?
Is there no one who could ansser my query!!! Where are all the experts?


我从未使用过MessageBox()WinAPI调用,但是我试着帮忙。


通过一些快速的谷歌搜索我发现了以下(msdn microsoft):
I never used MessageBox() WinAPI call, but I try to help.

By some fast googling I found out the following (msdn microsoft):
展开 | 选择 | Wrap | 行号


您的MessageBox有LPCTSR成员。 T意味着TCHAR。这意味着你应该使用TCHAR转换。你的文字必须是TEXT(我的字符串)。


使用TCHAR读取MSDN aboyut。


最后,使用MultibyteToWideChar创建来自文字的LPWSTR。避免类型转换,因为他们只是告诉编译器如何处理地址,并且不做任何事情来转换指向的数据。
Your MessageBox has an LPCTSR member. That T means TCHAR. And that means you shoudl be using the TCHAR conversions. Your literals need to be TEXT("My string").

Read MSDN aboyut using TCHAR.

Lastly, use MultibyteToWideChar to create an LPWSTR from a literal. Avoid typecasts since all they do is tell the compiler how to treat the address and do nothing to convert the data pointed at.


这篇关于RTL消息框中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆