guides:com:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
guides:com:start [2025-03-25 18:54] – Add some info about IDispatch geekguides:com:start [2025-03-26 12:36] (current) – [IDispatch Objects] Demote header level geek
Line 73: Line 73:
 Therefore, the indexes of the IDispatch methods in the vtable start ''3'' not ''0''. This is very important to keep in mind when looking for indexes from headers posted online. For example, it is often helpful to perform Google searches such as ''IDispatchVtbl filetype:h'' to find header files [[https://github.com/tpn/winsdk-10/blob/master/Include/10.0.16299.0/um/OAIdl.h#L2242|like this one]]. Instead of showing that it begins with the IUnknown functions, it just has the text ''BEGIN_INTERFACE'' which, while it's likely easier to write and manage, it is not very useful to us the readers. Therefore, the indexes of the IDispatch methods in the vtable start ''3'' not ''0''. This is very important to keep in mind when looking for indexes from headers posted online. For example, it is often helpful to perform Google searches such as ''IDispatchVtbl filetype:h'' to find header files [[https://github.com/tpn/winsdk-10/blob/master/Include/10.0.16299.0/um/OAIdl.h#L2242|like this one]]. Instead of showing that it begins with the IUnknown functions, it just has the text ''BEGIN_INTERFACE'' which, while it's likely easier to write and manage, it is not very useful to us the readers.
  
-====== IDispatch Objects ======+===== IDispatch Objects =====
  
 The IDispatch interface is Microsoft's "automation" interface, designed to allow easy integration with automation languages like Visual Basic and VBScript. Rather than following a strict structure, objects implementing the IDispatch interface only implement four additional methods on top of IUnknown's reference counter methods: The IDispatch interface is Microsoft's "automation" interface, designed to allow easy integration with automation languages like Visual Basic and VBScript. Rather than following a strict structure, objects implementing the IDispatch interface only implement four additional methods on top of IUnknown's reference counter methods: