Home  >  Article  >  Backend Development  >  PHP引述COM对象例子 PHP引用DLL方法

PHP引述COM对象例子 PHP引用DLL方法

WBOY
WBOYOriginal
2016-06-13 13:02:06866browse

PHP引用COM对象例子 PHP引用DLL方法

一:编译生成p_test.dll文件

二:注册

提示符下运行:regsvr32?p_test.dll

三:编写php文件,test.php4代码如下:

$b=new COM(“p_test.c_test”);

$a=$b->Test_Number(-454);

echo?$a;

?>

1 楼 zjsunshine 2011-08-15  
new COM(“p_test.c_test”);


.c_test 这里怎么理解?
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn