Windows MFC应用程序从ASCII移动到UNICODE [英] Windows MFC App to move from ASCII to UNICODE

查看:237
本文介绍了Windows MFC应用程序从ASCII移动到UNICODE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个很老很长的应用程序。它最初是使用ASCII字符集开发的。它现在被用于世界上字符集是UNICODE的地方。我有一个文件,其中包含对话框和菜单的所有文本。当我将文本文件中的字符集更改为UNICODE时出现问题,我可以读取UNICODE字符,但我无法使用CWnd :: SetWindowText将它们放入对话框中。任何人都有任何想法如何使对话框和菜单接受UNICODE字符而不必将charectar设置为UNICODE?



任何帮助感激不尽

McSam

Hi,
I have an app which is very old and long. It was developed initially using ASCII character set. It is now being used in parts of the world where the character set is UNICODE. I have a file which contains all the text for the dialogs and menus. Here comes the problem when I change the charecter set in the text file to UNICODE, I can read the UNICODE characters but I cannot get them into the dialog using CWnd::SetWindowText. Anyone got any ideas how I can make the dialog and menus accept UNICODE characters without having to set the charectar set to UNICODE?

Any help gratefully appreciated
McSam

推荐答案

从你写的内容来看,我认为你没有正确修改你的代码。看一下这篇文章 [ ^ ]例如关于如何获得良好示例实现支持UNICODE的代码。
From what you write, I suppose you are not modifying your code properly. Have a look at this article[^] for instance for good example about how to implement UNICODE-aware code.


这篇关于Windows MFC应用程序从ASCII移动到UNICODE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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