COM objects as parameters

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
darrell.pittman
Forum Newbie
Posts: 2
Joined: Wed Jul 30, 2008 12:41 pm

COM objects as parameters

Post 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?
Post Reply