将byte *转换为lpwstr [英] Convert byte * to lpwstr
本文介绍了将byte *转换为lpwstr的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好b $ b
我想将BYTE *转换为LPWSTR,如下所示,这是不正确的,请告知正确的机制。非常感谢提前!!
Hi
I am want to convert BYTE* to LPWSTR as below, which is not correct, Please advise correct mechanism to do so. Many Thanks in advance!!
BYTE *bpString;// with some data
....
LPWSTR plstr = (LPWSTR)bpString;
我尝试过:
LPWSTR plstr =(LPWSTR)bpString
和mbstowcs(),但没有成功
What I have tried:
LPWSTR plstr = (LPWSTR)bpString
and also mbstowcs(), but did not succeeded
推荐答案
看一下 mbstowcs手册页 [ ^ ]。
这篇关于将byte *转换为lpwstr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文