IDispatchbased
IDispatchbased refers to COM objects or components that expose their automation interface primarily through the IDispatch interface rather than a fixed vtable. In COM, IDispatch provides late binding capabilities that allow scripting languages and other dynamic clients to discover and invoke methods or access properties at runtime. A typical IDispatch-based automation server also provides type information through a type library (.tlb) to make its interface discoverable, though it is not strictly required.
The essential IDispatch methods are GetTypeInfoCount, GetTypeInfo, GetIDsOfNames, and Invoke. Clients call GetIDsOfNames to map a
IDispatch-based components are common in legacy automation servers and in environments where language interoperability is important.
Developers should consider performance implications, type information availability, and security when implementing or consuming IDispatch-based automation.