ActiveX control packaging release [no certificate release] (1)

xiaoxiao2021-03-06  22

Recently, in order to solve an ActiveX technical problem, use VB to make an ActiveX control, what is wrong,

That is to test the release of ActiveX, and the version update! Take it for two days, finally understand some of these processes!

By the way, I will not forget! I have seen an article, introduced the function of using C # to develop ActiveX, but C # can only

To make a hosted procedure, you need .NET Framework after you can install it! So, I finally developed, or

Developed with VB6, VC 6.

From the procedure of making test ActiveX controls, packaging, publishing as follows:

VB Development ActiveX Control Steps:

1. Create an ActiveX Control project

2, draw the operation interface of the ActiveX control, and write code

3, special attention: on the MAKE page on the properties of the project, there is a Version Number area, you need you to write the current control

Version number, this place and automatic download have a close relationship! When your far-end web browser checks the version number of the local control version number

When different on the server, the browser will automatically download the new version of the control from the server, so you compile

The new version of the control must be changed to the version number! Failure to do so may result in remote unrecognizable.

4, compile ACTIVEX control

ActiveX control package steps:

This example takes the packaged tools that come with STUDIO 6.0 as an example.

1. Select the currently selected VB ActiveX project to package.

2, there are three options when selecting Package Type:

1) Standard setup package

2) Internet package

3) Dependency File

Select the second!

3. There are 3 options when you choose File Source: 1) Include in this Cab

2) Download from Microsoft Web Site

3) Download from Alternate Web Site

The above option is for each related DLL, OCX, so if you want to modify the parameters, you need one file setting!

I suggest that you choose the first item! Because some controls are updated from external, they may meet questions such as certificates.

It may cause your program to be unused, so all use locally is the most sincere choice!

Additional steps in the packaging process, not specifically explained, all of which are set up!

4. In the root of the website of the release control, it is called ActiveX, put all the files in the packaged package directory.

Copy to the ActiveX directory.

5, modify the test example HTM file after packing completion:

After the package is complete, the tool will automatically generate a HTM file as the project name, and the code is as follows:

WebActivex.cab </ title> </ head> <body> <! - if any of the controls on this page required a license package file. Run LPK_TOOL.EXE To create the required lpk file. LPK_TOOL.EXE CAN Be Found on the ActiveX SDK, http://www.microsoft.com/intdev/sdk/sdk.htm. if you have the Visual Basic 6.0 CD, IT CAN Also Be Found In the / Tools / LPK_Tool Directory.The Following IS An Example of The Object Tag:</p> <p><Object classid = "CLSID: 5220cb21-c88d-11cf-b347-00aa00a28331"> <param name = "lpkpath" value = "lpkfilename.lpk"> </ object> -></p> <p><Object ID = "ActiveXDrive" ClassID = "CLSID: F68EC215-0F14-416F-B680-FF8C772A0B47" CodeBase = "WebActiveX.cab # Version = 1, 1, 0, 0"></p> <p>change into:</p> <p>Codebase = "http://130.50.26.221/ActiveX/webactivex.cab#version=1, 1, 0, 0"> </ Object> </ body> </ html></p> <p>Note the red font part above.</p> <p>Client IE setting:</p> <p>1. Open IE-> Internet Options -> Security -> Internet, set the security level to low! Pay attention to "Customize" inside,</p> <p>Is there a restriction on ActiveX, if there is a full release!</p> <p>2. If you install a firewall software, pay attention to these softwares have no restrictions on HTTP access, if you have all let go!</p> <p>The last step: Hey, access the server that publishes the ActiveX control on another computer. It should be successful!</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-43035.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="43035" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.033</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = 'G1EUcAxwkBQsjs425KiEAb5W_2B3D_2Fq8KcVJUiWQnTZGLxYr0tQeUF71a5e8tEuVhKNZKozyfHgcjsfFZt'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>