php-windows | 2002071
Date: 07/12/02
- Next message: Scott Hurring: "[PHP-WIN] Re: ini_set"
- Previous message: Scott Hurring: "Re: [PHP-WIN] Re: Calling Windows DLL Files"
- In reply to: Thomas Weidner: "[PHP-WIN] Returning values from function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Do it the opposite way... don't use "&" when passing vars to
functions, but do use it when receiving values in functions:
<?
function test (&$value) {
$value = "Hey";
}
test($x);
print $x;
?>
-- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Thomas Weidner" <Thomas_Weidner <email protected>> wrote in message news:20020709105240.90855.qmail <email protected> > Hy... > > How can I get back an reference value from an function. > I call an COM-function witch is described as followed : > > int GetCount(Value 1, Value 2, return Value 3) > > Well... 'till now it look like this > > $obj = new COM("comobject"); > $count = -1; > $error = -1; > $error = $obj -> GetCount(1,1,&$count); > > I get back the int value ob GetCount, thats OK. > But how can I get back Value 3 ??? > > Help would be appreciated... > > Thanks > Thomas Weidner > >-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Scott Hurring: "[PHP-WIN] Re: ini_set"
- Previous message: Scott Hurring: "Re: [PHP-WIN] Re: Calling Windows DLL Files"
- In reply to: Thomas Weidner: "[PHP-WIN] Returning values from function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

