佚名通过本文主要向大家介绍了bstr,bstr t,bstr是什么类型,bstr转cstring,vt bstr等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: BSTR 的问题
描述:
描述:
[id(11), helpstring("method IssueBill")] HRESULT IssueBill([in] BSTR bstrBillSeq, [out] BSTR *bstrReSeq,[out,retval] short *iReturn);
在vc引用后 他的方法函数为
short CFzPrintY::IssueBill(LPCTSTR bstrBillSeq, BSTR* bstrReSeq)
对比bstrBillSeq 他是LPCTSTR 调用起来很方便,但是bstrReSeq是BSTR *的类型。这样我还要转换才能使用。
请问有办法也是LPCTSTR ?