从无符号字符转换为CString [英] Converting from unsigned char to CString

查看:109
本文介绍了从无符号字符转换为CString的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不使用强制转换为char的情况下将无符号char值转换为CString.
我想要的只是将127之后的值转换为CString.
有可能吗?
任何帮助都将受到欢迎. :)

How to convert unsigned char value to CString without using cast to char.
All i want is to convert the values after 127 to CString.
Is it possible.
Any help will be welcome. :)

推荐答案


是什么意思
What do you mean with
Gautam Raiker写道:
Gautam Raiker wrote:

将未签名的char值转换为CString

convert unsigned char value to CString


?


如果需要字符的字符串表示形式,请使用CString::Format方法,例如:


?


If you need the string representation of the character the use CString::Format method, for instance:

unsigned char c = 129;
CString myString;
myString.Format("%d",c);


:)


这篇关于从无符号字符转换为CString的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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