我去查注册表了。在{98087D89-5801-4C53-B26B-DEB5443EA3B9}这块有我的Price.dll,里面的一个ProgID中的键值是Price.TracePrice,我就用这个作为标识。如下:
global $code;
$code="117411";
$rfq=new COM("Price.TracePrice");
$ret=$rfq->getprice($code);
echo $ret."<br>";
但是运行结果显示Warning: Unable to obtain IDispatch interface for CLSID {98087D89-5801-4C53-B26B-DEB5443EA3B9}: 不支持此接口 in c:\apache\htdocs\ver.php on line 8
Fatal error: Call to a member function on a non-object in c:\apache\htdocs\ver.php on line 9
这是什么问题?