IAppServerDisp = dispinterface
    ['{1AEFCC20-7A24-11D2-98B0-C69BEB4B5B6D}']
    function  AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; 
                              MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
  end;
-------------------------------------------------------------------
我想找到AS_ApplyUpdates对应的代码怎么找呀?
还有,请说一下dispatch的用法。
谢谢!

解决方案 »

  1.   

    dispatch?你说的是哪一个?IDispatch吗?还是其他的?请说明……
      

  2.   

    AS_ApplyUpdates对应的代码的代码已以封装在这个'{1AEFCC20-7A24-11D2-98B0-C69BEB4B5B6D}'COM中了,这里只是申明接口,也就是申明如果去用这个COM。Delphi的Import ActiveX Control会办你生产COM的对应接口类,直接操作这个类就可以了。
      

  3.   

    to: reallike(不得不补习离散……)  
    除了IDispatch还有多少Dispatch?我不知道:)
    你就IDispatch讲讲吧,点一下就可以了谢谢!TO: hch_45(HCH ~ahong.net~)  
    我就是想在{1AEFCC20-7A24-11D2-98B0-C69BEB4B5B6D}'COM中去找相应代码,
    我是做了个DCOM程序,直接操作这个类时出错,我想追进去,但是追到上面那段代码就追不下去了,
    请指教谢谢!
      

  4.   

    IAppServerDisp仅仅是一个接口,而肯定有声明的类的原型。如果想找代码,一般应该是没有的……有关IDispatch,我想Msdn比我说的更详细,你最好看那个地方。
      

  5.   

    IDispatch InterfaceIDispatch interface exposes objects, methods and properties to programming tools and other applications that support Automation. COM components implement the IDispatch interface to enable access by Automation clients, such as Visual Basic.Methods in Vtable OrderIUnknown Methods Description QueryInterface  Returns pointers to supported interfaces. 
    AddRef Increments reference count. 
    Release Decrements reference count. IDispatch Methods Description 
    GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1). 
    GetTypeInfo Gets the type information for an object. 
    GetIDsOfNames Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs. 
    Invoke Provides access to properties and methods exposed by an object. Requirements
    IDispatch is located in the Oleauto.h header file on 32-bit systems, and in Dispatch.h on 16-bit and Macintosh systems.