Цитата:
Изначально опубликовано maxsmirnov
причем он обернут в аксапте, в классе COM
protected final anytype dispatch(...)
О! А как ты его так получил?
Хелп в 3.0 пишет
"COM.dispatch
Run on: Called
Description
The dispatch method is a reserved system method, which should not be called explicitly."
Может имел в виду
PHP код:
public comInterface interface()
Arguments
Returns : The COM interface of the attached COM object
Remarks
This method is for the experienced programmer and it should be used with great caution.
The interface property is read-only.
Example
{
COM com1 = new COM("MyCOM.Object");
COM com2 = new COM("MySecondCOM.Object");
COMVariant varObject = new COMVariant();
COMInterface comInterface;
comInterface = com1.interface();
varObject.iDispatch(comInterface);
com2.setObject(varObject); // give 'com2' the 'com1' object
// or
com2.setObject(com1); // give 'com2' the 'com1' object
}