Re: Using DLL with PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dan Shirah wrote:
>>  It doesn't appear that your function accepts a parameter.  What does
>> this do:
>>
>> //VB
>> Public Function hello(ByVal name As String) As String
>>    hello = "Hello " & name & "!"
>> End Function
>>
>> //PHP
>> echo $new_com->hello("Dan");
>>
>> --
>> Thanks!
>> -Shawn
>> http://www.spidean.com
>>
> 
> Shawn I tried what you suggested but it returns the following:
> 
> *Fatal error*: Cannot pass parameter 1 by reference
> 
Just guessing as I haven't used the PHP COM stuff, but what do you get
if you change ByVal to ByRef?

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux