我看别人有这么写的:
<?
global $id,$Number,$Title;
$rfq=new COM("test1.Info");
$ret=$rfq->Get($id,$Number,$Title);
echo $ret;
echo $id.$Number.$Title."<br>"; ?>
我不知道$rfq=new COM("test1.Info"); 到底是什么意思。那个test1是什么?那个Info又是什么?请教啊请教
<?
global $id,$Number,$Title;
$rfq=new COM("test1.Info");
$ret=$rfq->Get($id,$Number,$Title);
echo $ret;
echo $id.$Number.$Title."<br>"; ?>
我不知道$rfq=new COM("test1.Info"); 到底是什么意思。那个test1是什么?那个Info又是什么?请教啊请教
获得正确的对象标识名不是一件容易的事。你可以查找一下windows的注册表,在 HKEY_CLASSES_ROOT 中寻找一下你注册的price.dll,在你的机器上有效的对象标识放在 CLSID 子文件夹下。
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 8Fatal error: Call to a member function on a non-object in c:\apache\htdocs\ver.php on line 9
这是什么问题?
This error can have multiple reasons: 1、the CLSID is wrong
2、the requested DLL is missing
3、the requested component doesn't implement the IDispatch interface 你再找找看,可能不是Price.TracePrice