Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

[PHP3] 3.0.2a Win32 binary and COM module usage From: Zeev Suraski (bourbon <email protected>)
Date: 07/20/98

I've committed the 3.0.2a Win32 binary. You can download it from
http://www.php.net/distributions/php-3.0.2a-Win32+COM.zip (replace
www.php.net with your favourite mirror - allow for about one hour until it
propogates everywhere, including www.php.net).
This zip includes the php.exe *only*. It doesn't include an install
program, a php3.ini, any external DLLs - anything - just php.exe. The
recommended installation procedure would be downloading the 3.0.2
installation, installing it, and then copying the 3.0.2a binary over it.
The reason for the the hassle is that Shane, our Win32 guy, isn't around
for a few days.

The COM module allows automation of *other* objects. It doesn't export an
interface that automates PHP (I don't think we have plans to ever do that).
 As it is now, I'm not sure it's useful for anything, but it does what I
expected it to do. I'm still playing around with COM to see if it's
possible to actually do something useful with it (anybody familiar with
IRunningObjectTable perhaps? anybody ever automated any Office97 document
from C/C++?). If any of you manages to actually do something cool with it,
please share :)

There are 4 functions available:

[1] COM_object_handler COM_Load(string $ProgID);

Creates an object with the GUID corresponding to the specified $ProgID.
For example:
$RichEditCtrl = COM_Load("RichEdit.RichEditCtrl.1");
Returns a COM object handler on success, or FALSE on failure.

---
[2] Variant COM_Invoke(COM_object_handler $COH, string $function_name,
$arg1, $arg2, ...)

Invokes the specified function using the COM object corresponding to the handler specified. The variable argument list ($arg1, $arg2, ...) is sent to the invoked function.

--- [3] Variant COM_PropGet(COM_object_handler $COH, string $property_name)

Returns the value of a propget member of the specified object.

--- [4] Bool COM_PropSet(COM_object_handler $COH, string $property_name, Variant $new_value)

Assigns $new_value into a propput member of the specified object.

Aliases: COM_Get() is identical to COM_PropGet() COM_Set() and COM_PropPut() are identical to COM_PropSet().

If someone actually uses it, has any comments or tips, please, let me know.

Zeev -- Zeev Suraski <zeev <email protected>> For a PGP public key, finger bourbon <email protected>

-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3