cab安装时如何更新安装新版本控件

1.首先要编译好新版本的控件。

 

2.在页面调用时在codebase 属性中加入新版本号


例如:

修改前:

< OBJECT id = " formx " classid = " CLSID:E5022E7E-758C-4A32-99C6-55742289301D " height = " 90% " width = " 100% " codebase = " cab/KoalForm.cab#version=1,0,0,1 " VIEWASTEXT ></ OBJECT >

修改后:

< OBJECT id = " formx " classid = " CLSID:E5022E7E-758C-4A32-99C6-55742289301D " height = " 90% " width = " 100% " codebase = " cab/KoalForm.cab#version=1,0,0,2 " VIEWASTEXT ></ OBJECT >


你可能感兴趣的:(c,object)