Re: PHP + COM

From: Date: Wed, 14 Feb 2001 09:59:03 +0000
Subject: Re: PHP + COM
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5560@lists.php.net to get a copy of this message
PHP seems to have problems with multiple levels of indirection. Try assigning the object you need to work with to a local variable. e.g. // Assign to temp variable $tempCAT = $pro->CAT; // Do some work $tempCAT->FILTER(XXX); // Copy back to original object $pro->CAT = $tempCAT; Bye Marius ----- Original Message ----- From: Dario Carnelutti <dcsnfh@cantv.net> To: <php-windows@lists.php.net> Sent: Tuesday, February 13, 2001 9:43 PM Subject: [PHP-WIN] PHP + COM > Hi i have a problem with PHP using a dll that i have created > > the dll have this structure > class (PROCESS) > object(CAT) > void(FILTER) > > then, when i do this: > $pro=new COM("ENGINE.PROCESS"); it works fine > if i print any property it works but when i try to use the void filter > it gives me a lot of errors > > i'm trying this > $pro->CAT.FILTER(XXX); > > and i have tried > $pro->CAT->FILTER(XXX); > > but nothing works, can somebody help me... > > thanks > > Dario > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.windows (#5560) next »