Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Delphi呼叫VB ActiveX Control之Method的問題?

0 views
Skip to first unread message

MoneyTrain

unread,
Apr 7, 1998, 3:00:00 AM4/7/98
to

我用VB 5.0寫了一個ActiveX Control,
用VC++ 5.0 及 C++ Builder 1.0來測試, 都沒有問題,
但在Delphi 3.0卻發現以下的問題,

存取這個Control的Property都不會有問題,
但是一呼叫這個Control的Method時就會出現Exception,
有參數, 無參數, Call by Reference, Call by Value的Method所產生
的error Message都不太一樣

以下的Code的Error Message如下
"OLE Error 800A01A9"

VB code :
public sub Method1 ()
' do nothing
end sub

Delphi code for the control :
procedure TMyControl.Method1;
begin
ControlInterface.Method1; // Exception raised on this line
end;

請各位高手幫忙.

--
* Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>

0 new messages