COM methods fail

From: Date: Wed, 01 Dec 1999 19:00:48 +0000
Subject: COM methods fail
Groups: php.version4 
Request: Send a blank email to php-version4+get-7189@lists.php.net to get a copy of this message
This message was sent from Geocrawler.com by "Mark Griffin" <merv@negia.net> Be sure to reply to that address. I am trying to call some methods for a COM Object on NT for Macromedia Generator. I have an ASP sample that works fine, but when i transpose to PHP i get some errors. I am not entirely sure of the syntax to use, but it seems like it should work. The error that i get (PHPb3) is as follows: Warning: PropGet() failed: Invalid number of parameters. in D:\Inetpub\wwwroot\generator\com.php on line 12 Fatal error: Call to undefined function: () in D:\ Inetpub\wwwroot\generator\com.php on line 12 Here is the code, the ASP version is commented out at the top of the block. <? //set gen = Server.CreateObject("bodhi.offline") //gen.AddTemplate ("d:\inetpub\wwwroot\generator\ test.swt") //gen.AddType ("SwF") //gen.AddFileType ("d:\inetpub\wwwroot\generator\ test.swf") //gen.RunGen $gen = new COM("bodhi.offline") or die("Unable to instanciate bodhi"); ; $gen->AddTemplate("d:\inetpub\wwwroot\generator\ test.swt"); $gen->AddType("SwF"); $gen->AddFileType("d:\inetpub\wwwroot\generator\ test.swf"); $gen->RunGen(); ?> Thank You. -Merv Geocrawler.com - The Knowledge Archive

« previous php.version4 (#7189) next »