Win32 COM

From: Date: Thu, 02 Dec 1999 03:53:15 +0000
Subject: Win32 COM
Groups: php.version4 
Request: Send a blank email to php-version4+get-7225@lists.php.net to get a copy of this message
I think that this is similar to another problem I saw on the list recently. I have attached the code and errors. Any help would be appreciated. This is my first use of the COM module in PHP4, and it seems to work OK, but with some major excpetions. Thanx Peter Code: $gen = new COM("AddressObject.AddressCheck"); $initerr = $gen->Initialize("e:\\mp4\\","e:\\mp4\\"); if ($initerr > 0) { $initerrstr = $gen->GetInitializeErrorString(); echo "Error: $initerr<BR>"; echo "$initerrstr<P>"; } else { $gen->ClearProperties(); $dbasedate = $gen->GetDatabaseDate(); // *** Line 12 *** $build = $gen->GetBuildNumber(); $gen->Company("Aristotle Publishiing"); $gen->Address("205 Pennsylvania"); $gen->City(""); $gen->State(""); $gen->Zip("20003"); $gen->Urbanization($Urbanization); } Errors: Warning: Unsupported variant type in C:\Inetpub\wwwroot\vlo\com.phtml on line 12 Warning: Invoke() failed: Member not found. in C:\Inetpub\wwwroot\vlo\com.phtml on line 14 Warning: Unsupported variant type in C:\Inetpub\wwwroot\vlo\com.phtml on line 14 Warning: Invoke() failed: Member not found. in C:\Inetpub\wwwroot\vlo\com.phtml on line 15 Warning: Unsupported variant type in C:\Inetpub\wwwroot\vlo\com.phtml on line 15 Warning: Invoke() failed: Member not found. in C:\Inetpub\wwwroot\vlo\com.phtml on line 16 Warning: Unsupported variant type in C:\Inetpub\wwwroot\vlo\com.phtml on line 16 Warning: Invoke() failed: Member not found. in C:\Inetpub\wwwroot\vlo\com.phtml on line 17 Warning: Unsupported variant type in C:\Inetpub\wwwroot\vlo\com.phtml on line 17 Warning: Invoke() failed: Member not found. in C:\Inetpub\wwwroot\vlo\com.phtml on line 18 Warning: Unsupported variant type in C:\Inetpub\wwwroot\vlo\com.phtml on line 18 Warning: Invoke() failed: Member not found. in C:\Inetpub\wwwroot\vlo\com.phtml on line 19

« previous php.version4 (#7225) next »