type Interface1=Interface {....} procedure SomeProc1; end; Interface2=Interface {....} procedure SomeProc2; end; TCoClass=class(TComObject,Interface1,Interface2) public procedure SomeProc1; procedure SomeProc2; end; .... What's the host meaning?Above declaration show the basic need the host mentioned that one COM object implements two interface which is Interface1 and Interface2 and I don't understand what's how pass parameters of interface....
Interface1=Interface
{....}
procedure SomeProc1;
end;
Interface2=Interface
{....}
procedure SomeProc2;
end;
TCoClass=class(TComObject,Interface1,Interface2)
public
procedure SomeProc1;
procedure SomeProc2;
end;
....
What's the host meaning?Above declaration show the basic need the host mentioned that one COM object implements two interface which is Interface1 and Interface2 and I don't understand what's how pass parameters of interface....
现在不明白的是 TCoClass=class(TComObject,Interface1,Interface2)怎么来的,一个CoClass怎么对应两个接口?
FrameSniper(§绕瀑游龙§) 你看看
http://expert.csdn.net/Expert/topic/2519/2519215.xml?temp=.3328363