note 28337 added to ref.com
| From: | manxajp at bol dot com dot br | Date: | Thu, 09 Jan 2003 19:19:46 +0000 |
| Subject: | note 28337 added to ref.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41924@lists.php.net to get a copy of this message | ||
I have a object COM => test.
This object has a method => somar.
I'have implemented in Borland Delphi.
In a Client Apllication implemented in Delphi, i have:
Parameters INPUT
value1, value2: Integer;
Parameters OUTPUT
soma: Integer;
When, i do:
DCOMConnection.AppServer.somar(value1, value2, soma);
The parameter OUTPUT "soma" returns the result of ADD between "value1" and
"value2".
But, when i did same in PHP:
$test = new COM("test");
$test->Somar($value1, $value2, $soma);
The parameter OUTPUT "soma" returns NULL;
I think about the Variant Class, doing this:
$soma = new Variant(0, VT_INT|VT_BYREF) or
$soma = new Variant(0, VT_INT) or
$soma = new Variant(0, VT_I4|VT_BYREF) , etc...
In neither of cases i get any result! :(
Can i do to resolve the problem?????
My PHP is 4.2.1.
Thank you.
João Paulo Souza (JPSouza) -
--
http://www.php.net/manual/en/ref.com.php
http://master.php.net/manage/user-notes.php?action=edit+28337
http://master.php.net/manage/user-notes.php?action=delete+28337
http://master.php.net/manage/user-notes.php?action=reject+28337