这个接口在VB下用OBJECT可以实现,用DELPHI实现接口转换出现‘Acess Violation'的错误。
接口定义如下:
Strings = dispinterface
['{A151E110-EC83-11CF-98A2-00805F7CED21}']
property _NewEnum: IUnknown dispid -4;
property Count: Smallint dispid 1;
property Unique: WordBool dispid 2;
function Item(Item: OleVariant): WideString
dispid 3;
function Add(const string_: WideString): WordBool
dispid 4;
procedure Clear
dispid 5;
function Find(const itemName: WideString
startIndex: OleVariant): Integer
dispid 6;
function _Item(Item: OleVariant): WideString
dispid 0;
end;
引用的函数是:
procedure TForm1.WebLinkRequest(Sender: TObject
const arguments,
values: IDispatch);
各位大虾救救我,谢谢!