BSTR到BYTE ** [英] BSTR to BYTE**
本文介绍了BSTR到BYTE **的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以告诉我如何在c ++中将BSTR转换为BYTE **,因为我不知道很多c ++。我正在使用POOM sdk,需要将BYTE **中的数据返回给CeRapiInvoke()的输出参数。
问候,
K
解决方案
您好,
使用此代码
包含以下标题< br>
#include< comutil.h>
#pragma comment(lib," comsuppw.lib")
BYTE **输出;
* output = _com_util :: ConvertBSTRToString (输入); 跨度>
Hi,
Can some one tell how to convert BSTR to BYTE** in c++ , as i don't know much c++. I am using POOM sdk and need to return data in BYTE** to CeRapiInvoke() 's output parameter.
Regards,
K
解决方案
Hi,
Use this Code
include the following headers
#include <comutil.h>
#pragma comment(lib, "comsuppw.lib")
BYTE** output;
*output = _com_util::ConvertBSTRToString(input);
这篇关于BSTR到BYTE **的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文