COM , IUnknown , Idispatch, Vtable

Results 1 to 3 of 3

Thread: COM , IUnknown , Idispatch, Vtable

  1. #1
    Manoj Guest

    Default COM , IUnknown , Idispatch, Vtable

    Hi There<BR><BR>Can someone tell me the role of vtable,IUnknown and I dispatch interfaces in making a COM Server function ?<BR><BR>If I create a COM server with my own functionalities and functionalities based on two different COM servers, will there be any difference in values in vtable for each of these COM Servers ?<BR><BR>Thanks <BR>Manoj<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: COM , IUnknown , Idispatch, Vtable

    What language are you coding the com objects in? Just curious.<BR><BR>Information on IUnknown:<BR><BR><BR>Information on COM in general:<BR><BR><BR>IUnknown&#039s role in Automation:<BR><BR><BR>IDispatch&#039s role in Automation:<BR><BR><BR>I am not sure where info on vTable is. It&#039s role is similar to IDispatch, but it is used for early binding. Click "Show TOC" to get to the general areas from which I am posting these urls.<BR><BR>HTH<BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: COM , IUnknown , Idispatch, Vtable

    Vtable enables you to work on different implementations. Every COM object use IUnknown for type resolution, interface counting and releasing through Queryinterface, Addref and Release. <BR>Incase client wants to work with any object and has not binded <BR>any v table of that object in his code, that object should implement IDispatch.<BR>Coming to your problem, I think the vtable layout generated by you can be used to connect to the objects of other functionalites.<BR>bye<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts