顺
顺顺
Unregistered / Unconfirmed
GUEST, unregistred user!
var
IE:IWebbrowser2
function TIEHelper.SetSite(const pUnkSite: IInterface): HResult;
begin
if Assigned(IE) then begin
IE.QueryInterface(IconnectionPointcontainer,PConnpc);
pConnPc.FindConnectionPoint(HTMLElementEvents2,Pconnp);
pConnP.Advise(pUnkSite,pCookie);
end;
end;
为什么这样子不行呢?对于MSHTML的接口应该如何调用?不用TwebBrower.
希望大家多多指点。:)
IE:IWebbrowser2
function TIEHelper.SetSite(const pUnkSite: IInterface): HResult;
begin
if Assigned(IE) then begin
IE.QueryInterface(IconnectionPointcontainer,PConnpc);
pConnPc.FindConnectionPoint(HTMLElementEvents2,Pconnp);
pConnP.Advise(pUnkSite,pCookie);
end;
end;
为什么这样子不行呢?对于MSHTML的接口应该如何调用?不用TwebBrower.
希望大家多多指点。:)