本文介绍了SetTextJustification()方法无法证明Windows Server 2016上的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows Server 2016上运行发行版VC ++代码时,文本没有合理性。


我使用的是以下方法 


SetTextJustification(pDC,ExtraLen,ss-> nSpaces)



当我在Windows 10机器上运行调试版代码时,文本是否合理。



有人可以就此问题提出建议吗?



谢谢,


Rakesh

解决方案

Text is not getting justified when release version VC++ code is running on Windows Server 2016.

I am using below method 

SetTextJustification( pDC, ExtraLen , ss->nSpaces )

Text is justified properly when I run debug version of code on Windows 10 machine.

Can someone please suggest regarding this issue?

Thanks,

Rakesh

解决方案

The implication is that you have a bug in your code - possibly some uninitialised variable. Your debug version may be working by
chance.

You could try debugging your release version to identify the issue.

Dave


这篇关于SetTextJustification()方法无法证明Windows Server 2016上的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 00:59