一个COM对象2个接口,借口之间怎么传递参数?

解决方案 »

  1.   

    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....
      

  2.   

    谢谢 FrameSniper(§绕瀑游龙§) ,你说的正是我要做的
    现在不明白的是  TCoClass=class(TComObject,Interface1,Interface2)怎么来的,一个CoClass怎么对应两个接口?
      

  3.   

    在Type Library里点中你的CoClass,在右边选择Tab页Implements,点右键添加接口
      

  4.   

    给分,
     FrameSniper(§绕瀑游龙§) 你看看
    http://expert.csdn.net/Expert/topic/2519/2519215.xml?temp=.3328363