1,添加一个属性 类型为IDispatch *2,在javascript中将函数(function)对象赋值给该属性。3,在COM中通过invoke调用该function CComVariant result; CComVariant avarParams[1] = {str}; DISPPARAMS dispParams = {avarParams, NULL, 1, 0}; EXCEPINFO excepInfo; memset(&excepInfo, 0, sizeof excepInfo); UINT nArgErr = (UINT)-1; // initialize to . Read More
posted @ 2012-09-25 14:05 _iCDev_Zhou Views(403) Comments(0) Diggs(1) Edit