Sign in Join
FPDoc Onlineexperiment

DispCallByIDProc variable

In unit System

Callback to perform dispatch interface procedure call by ID.

Declaration

pascal
DispCallByIDProc: CodePointer

Description

VarDispProc is called by the compiler if it needs to perform an interface call from a variant which contains a dispatch interface. For instance, the following call:

Var
  V : OleVariant;
begin
  (V as IWord).OpenDocument('c:\temp\mydoc.doc');
end;

where IWord is a dispatch interface is encoded by the compiler and passed to DispCallByIDProc.

This pointer must be set by a routine that calls the OS COM handling routines.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.