Показать сообщение отдельно
Старый 29.11.2004, 18:23   #7  
mazzy is offline
mazzy
Участник
Аватар для mazzy
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
29,472 / 4494 (208) ++++++++++
Регистрация: 29.11.2001
Адрес: Москва
Записей в блоге: 10
Цитата:
Изначально опубликовано 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