There already is a working WAMP instance in a Windows 7 in which the line
$x = new COM(\"X\");
does instantiate a COM object.
I was
You need to register the DLL, using
regsvr32 yourdll.dll