1,317
社区成员
发帖
与我相关
我的任务
分享
STDMETHODIMP TcthreeImpl::GetC(BSTR B, VARIANT* A)
{
Form1->Caption = B;
return “测试”;
}
TForm1::fun(BSTR *s)
{
WideString w;
w = "abc";
*s = w;
//或者
*s = WideString( "abc").c_bstr();
}
void __fastcall TForm1::FormCreate(TObject *Sender)
{
WideString w;
fun(&w);
Caption = w;
}