Class TOleCtlr (unit Olectlr) |
TComponent
Constructors |
Functions |
save IDispatch
make the call
Properties |
Events |
Variables |
Constructors |
Functions |
Copies a Pascal string to a new BStr and returns the new BStr
releases the Object instance and uninitializes OLE
save IDispatch
does some housekeeping and then calls the objects IDispatch.Invoke method PARAMS: szMemberName - name of method or property to be invoked. wFlags - DISPATCH_METHOD, DISPATCH_PROPERTYGET, or DISPATCH_PROPERTYPUT. pvarArgs - pointer to VARIANT which contains the argument to be passed. If more than one argument, pvarArgs should be the first element of an array of VARIANTs. If no arguments, pvarArgs should be nil. cArgs - number of arguments pvarResult - pointer to VARIANT to receive result value. Should be nil if no return value
Initializes OLE, requests Object class to create an instance of itself, gets Object's IDispatch class and saves in FIDispatch. This procedure must be called before the Invoke procedure
Initializes varArg and fills with argument(vSource) and argument type(ptArgType). Strings are converted to BStr's
varArg.bstrVal := PasToBStr( sPropName );
Converts varSource to ptResultType and assigns resulting value to vResult
make the call
Properties |
Events |
Variables |