note 31162 added to faq.com
| From: | wanght at hotmail dot com | Date: | Fri, 11 Apr 2003 15:09:37 +0000 |
| Subject: | note 31162 added to faq.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46507@lists.php.net to get a copy of this message | ||
I need a example about how to use VARIANT class in php.
The specific question is that I want implement pass by reference in PHP.
The C++ code is very simaple like below, but I want to know hot to implement in PHP client side and
server side.
Client Side:
int result = 10;
HRESULT hr=instance->FetchValue(&result);
Server side:
STDMETHODIMP CSimpleCom::FetchValue(int *value)
{
int iTemp = *value + 10;
*value = iTemp;
return S_OK;
}
--
http://www.php.net/manual/en/faq.com.php
http://master.php.net/manage/user-notes.php?action=edit+31162
http://master.php.net/manage/user-notes.php?action=delete+31162
http://master.php.net/manage/user-notes.php?action=reject+31162