php 调用 C++ dll
动态库中要调用的函数
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->extern "C" int __stdcall GameRegister(char* szSystemInfo, char *szRegCode, char *szLicense);
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php $dw = new Com("DynamicWrapper"); $dw->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; ?>