Page 1 of 1

COM objects as parameters

Posted: Thu Oct 30, 2008 12:14 pm
by darrell.pittman
I have a COM object with the following method:

Code: Select all

 
Connection connect(ConnectionFilter cf);
 
In my php code I do the following:

Code: Select all

 
$com = new COM("ProgId");
$connectionFilter = new COM("ProgId for connection filter");
 
$connection = $com->connect($connectionFilter);
 

I get a type mismatch on parameter 0 error.

My question is, how to I pass in a COM object as parameters to COM object methods?