Index   Commented   Search   About

DISPID

Used by IDispatch::Invoke to identify methods, properties, and arguments.

typedef LONG DISPID;

The following DISPIDs have special meaning:

DISPID
Description
DISPID_VALUE
The default member for the object. This property or method is invoked when an OLE Automation controller specifies the object name without a property or method.
DISPID_NEWENUM
The _NewEnum property. This special, restricted property is required for collection objects. It returns an enumerator object that supports IEnumVariant and should have the restricted attribute specified in ODL.
DISPID_EVALUATE
The Evaluate method. This method is implicitly invoked when the OLE Automation controller encloses the arguments in square brackets. For example, the following two lines are equivalent:
x.[A1:C1].value = 10
x.Evaluate("A1:C1").value = 10
The Evaluate method has the dispatch ID DISPID_EVALUATE.
DISPID_PROPERTYPUT
The parameter that receives the value of an assignment in a property "put."
DISPID_CONSTRUCTOR
The C++ constructor function for the object.
DISPID_DESTRUCTOR
The C++ destructor function for the object.
DISPID_UNKNOWN
Value returned by IDispatch::GetIDsOfNames to indicate that a member or parameter name was not found.

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET

More Online Helps

Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun