Related questions:
Fatal Error: "Class not registered" creating COM object
Where can I find all of the COM objects that can be created in Powershell?
I'm currently migrating a PHP website from a server running Windows Server 2003 and PHP 5.2 to one running Windows Server 2012 R2 and PHP 5.6.35. One script is giving me a "Class Not Registered" error when creating a COM object:
$obj = new COM('DllName.ClassName') or die ("Unable to create COM object");
I've checked the above questions, and can confirm that:
- The COM DLL is registered on the server (both by checking the registry and using PowerShell)
- The installation of PHP is 32-bit (PHP_INT_SIZE is 4).
I think the next thing for me to look at is the "Advanced Settings" dialog mentioned in the answer to the first question above, but where do I find it? The actual server in use is Apache, installed as part of WAMP, but I think the problem is at a lower level.