说明:可能需要对IE安全设置中的ActiveX控件和插件相关属性进行设置。(如果需要可以将COM组件进一步封装为ActiveX,实现ISafeObject安全接口,签名打包为EXE或CAB文件)
调用示例:
function testCString() {
try {
var obj = newActiveXObject("atl_project.CStringModule")
var str = obj.GetFilePath()
alert(str)
} catch (e) {
alert(e.message)
}
}