关于php使用com组件的问题
xcyxl 2008-02-15 11:30:37 com组件中有一个方法
开发文档中c++的例子:
HRESULT OpenConnection(long * mCid,LPCSTR mIpAddrOfServer,int mTcpPortOfServer,LPSTR mUserId, LPSTR mSubId, LPSTR mPassword, BOOL mTraceFlag)
其中long * mCid 这个值我在用php语言传入的时候用的是&mCid
但是执行的时候报这样的错误:
Fatal error: Uncaught exception 'com_exception' with message 'Error [0x80020008] 不正确的变量类型。 ' in D:\www\test\com.php:9 Stack trace: #0 D:\www\test\com.php(9): com->OpenConnection(0, '222.11.11.11', 1557, 'ggsdjjkksu*72', 'tydsgtdf&@^23', 1) #1 {main} thrown in D:\www\test\com.php on line 9
兄弟们帮忙看看php该如何应对这种问题呢???