一个关于BSTR的问题
我也看不穿 2000-03-28 11:46:00 COM的字符串的类型常常是BSTR
我用的一个控件TBig2GB中
它定义了接口 BSTR GBToBig(BSTR* GBStr)
我的程序只是又用到两个TEdit,我是这样写的:
BSTR str=BSTR(WideString(Edit1->Text));
Edit2->Text=Big2GB1->GBToBig(&str);
编译,联接通过,执行中出现:
(this->GBToBig(GBStr,¶m2))Error:800A01A9(-2146827863)@c:\Program
files\borland\cbuilder4\Imports\BigToGB_TLB.h/240
Press [Y]es to terminate,[N]o to continue and [C]ancel to Debug
但在VB下只要简单的写:
Text2.Text=Big2GB1.GBToBig(Text1.Text)
就运行的很好
请问,在C++ Builder中如何写