XP下的GDI +文本输出 [英] GDI+ text output under XP
本文介绍了XP下的GDI +文本输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个带有GDI +用户绘制的显示的VS2005 MFC程序,它可以在Windows 7下完美运行.如果在XP模式下运行,则每个文本字符串后都有一个方框,看起来像是缺少的字体字符.它使用已安装的Ariel. MFC exe不是Unicode.
如果在XP或XP模式下GDI +出现问题,是否有其他想法?
TIA.
Hi all,
I''ve got a VS2005 MFC program with a GDI+ user-drawn display which runs perfectly under Windows 7. If I run it under XP Mode, each text string has a square box after it, which looks like a missing font character, however it uses Ariel, which is installed. The MFC exe isn''t Unicode.
Any ideas if it''s a problem with GDI+ under XP or XP Mode, or something else?
TIA.
推荐答案
要做的第一件事是检查要显示的字符串,以准确了解最后一个字符是什么.那应该给你一个提示,指出出了什么问题,可能是代码中的错误.
The first thing to do is examine the string you are trying to display in order to see exactly what the last character is. That should give you a clue as to what is going wrong, possibly a bug in your code.
传递给Graphics :: DrawString函数的字符串长度不应包含零终止符.
The string length passed to the Graphics::DrawString function shouldn''t include the zero terminator.
这篇关于XP下的GDI +文本输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文