时间:2021-07-01 10:21:17 帮助过:6人阅读
extern "C" int __stdcall GameRegister(char* szSystemInfo, char *szRegCode, char *szLicense);
Register("EducationGameRegister.dll", "GameRegister", 'i=sss', "f=s", "r=u"); $reg_code = ""; $ch = $dw->GameRegister("P2G9YFWGZW68G","2597367cea95b2cf0aace3bd5059c33e",&$reg_code); echo "Return Value:".$ch; echo "Register Code:".$reg_code; ?>
原型要求参数是指针,而 com 是不能传递指针的
PHP还能调用C++啊 真没听说过,坐等高人
$ch = $dw->GameRegister("P2G9YFWGZW68G","2597367cea95b2cf0aace3bd5059c33e",$reg_code);
????
这样也不行的。
我也碰到了这个问题,楼主解决了么
我也碰到了这个问题,楼主解决了么