Failed to create COM object 'X': Class not registered in another WAMP

前端 未结 2 1045
轮回少年
轮回少年 2020-12-22 10:19

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

相关标签:
2条回答
  • 2020-12-22 10:31

    You need to register the DLL, using

    regsvr32 yourdll.dll
    
    0 讨论(0)
  • 2020-12-22 10:42

    Managed to solve the problem by changing the working directory (using chdir) to be the same as the php.exe just before $x = new COM("X");.

    I think the DLL wasn't propery registered, or lacked something in itself.

    0 讨论(0)
提交回复
热议问题