在指定的CFont文本中显示的垃圾字符 [英] Garbage Characters displayed in specified CFont text

查看:110
本文介绍了在指定的CFont文本中显示的垃圾字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

注意:我已尝试按照建议指定Arial.问题仍然存在.

我已经开发了一个应用程序.我注意到与另一个软件程序发生了奇怪的交互.

这是它的不足.

我创建了许多用于自定义控件的字体.我指定了MS Shell Dlg,因为我可能需要支持其他语言.

**
据我了解,我无法指定Arial,Tahoma或任何普通的英/美字体.这将在非英语设备上中断,这些设备使用不同的字体来显示其字符,例如韩语,日语等.

如果我错了,请纠正我.
**

一切都很好.但是,如果我运行我的程序,然后运行我前面提到的另一个程序,则程序中的所有文本都是垃圾字符.
仅当这两个程序一起运行时,其他任何程序都不会发生这种情况.

此故障不会影响我未明确使用SetFont的控件文本.

这可能是我的软件出现问题,还是其他软件出现问题?

我知道这是一个难题,但是任何想法都会有所帮助.

Steven

Note: I have tried specifying Arial, as suggested. Problem remains.

I have developed an application. I have noticed a strange interaction with another software program.

Here''s the short of it.

I create a number of Fonts for use in custom controls. I specify MS Shell Dlg, as I may need to support other languages.

**
As I understand it, I cannot specify Arial, or Tahoma, or whatever normal English/US font. This will break on non-english devices, that use a different font for displaying their characters, such as Korean, Japanese, etc.

Correct me if I''m wrong, please.
**

Everything works great. However, if I run my program, and then the other program I mentioned earlier, all text in my program is garbage characters.
This never happens with any other program, only when these two are run together.

This glitch does not affect control text that I have not explicitly used SetFont on.

Is this likely a problem with my software, or the other one?

I know that''s a difficult question, but any thoughts would be helpful.

Steven

推荐答案

不要为字体使用MS Shell Dlg.选择一种特定的字体(我建议选择一种标准Windows安装随附的字体).

我使用Arial(比San San Serif更好).

编辑=============

我不明白为什么将此票选为3.您可能不喜欢答案,但这是正确的.有人对投票系统的用途有误解.
Don''t use MS Shell Dlg for your font. Select a specific font (and I recommend selecting one that comes with a standard Windows install).

I use Arial (I like it better than MS San Serif).

EDIT =============

I don''t understand why this was voted a 3. You may not LIKE the answer, but it''s correct. Someone has a misunderstanding of what the voting system is for.


这篇关于在指定的CFont文本中显示的垃圾字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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