atl vc 2005中的WCHAR 2 CString必须有20个字符 [英] WCHAR 2 CString in atl vc 2005 there must be 20 chars

查看:92
本文介绍了atl vc 2005中的WCHAR 2 CString必须有20个字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用GetIfEntry获取结构MIB_IFROW时,
我有一个wchar数组,
那么如何将这个数组更改为CString?

我有时会测试,但是我只是得到像"??????????"这样的字符?

when i use GetIfEntry to get structure MIB_IFROW ,
i has a wchar array,
then how do i change this array to CString?

i test sometimes,but i just get the chars like "??????????"

推荐答案

A WCHAR是一个16位字符,并且您的CString必须是相同的类型.如果您的程序不是针对Unicode编译的,则应使用CStringW来确保它与源代码兼容.
A WCHAR is a 16 bit character and your CString needs to be the same type. If your program is not being compiled for Unicode then you should use CStringW to ensure it is compatible with the source.


这太可悲了.
我使用CStringW确保它,但是当我显示它时,它必须是CSting.
因此,它也是"??????????".
如何将CStringW更改为CString?
it is so sad.
i use CStringW ensure it,but when i display it,it must be a CSting。
so ,it is also "??????????".
how do i change CStringW to CString?


这篇关于atl vc 2005中的WCHAR 2 CString必须有20个字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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