Variants.VarDispProc

From Référence RAD Studio VCL
Jump to: navigation, search

Informations C++

De Variants.hpp

	void (*)(System::Variant *,const System::Variant &,System::TCallDesc *,void *) VarDispProc;


Unité : Variants

Type : variable

Description

Prend en charge l'Automation IDispatch.


Dans Delphi, VarDispProc pointe sur une routine appelée pour exécuter les méthodes (ou les propriétés d'accès) d'une interface affectée à un Variant. L'unité Variants affecte une procédure qui génère une erreur 222 ou provoque une exception EVariantDispatchError. L'unité ComObj réaffecte cette variable à une procédure qui génère les appels COM IDispatch appropriés.

Pour contrôler comment les variants exécutent les méthodes lorsqu'ils possèdent une valeur représentant une interface, affectez votre propre procédure à VarDispProc.

Voir aussi

Personal tools