Reference the OCX control of VB6 in HTM

Source: Internet
Author: User
VB6 allows you to easily compile OCX controls and DLL components. To use DLL components on your website, you can directly use Server in ASP. createObject ("project name. you can call this component on the server. The use of OCX is complicated because it needs to be downloaded to the client. The following are some of my experiences:
Pack OCX into an internet package:
Start package: Choose "external program"> "external program manager"> "enable the" package and expand Wizard"
Start packaging: Menu "external program"-"package and expand Wizard"
Package into an internet package: Select "package" and select "internet software package" when selecting the package type "....
Use OCX package in htm:
After packing the internet package in OCX, an HTM file with the same name as the control exists in the directory where the CAB package is located. The file contains the CLASSID of the control, with this ID, you can reference the packaged OCX control in HTM. As follows:
CLASSID = "CLSID: 1046B4E3-C676-45E5-9BF9-434D393399E6"
CODEBASE = "UpDownText. CAB # version =,">
Software security-from network
Using Microsoft's verification code tool, you can sign ActiveX controls, which tells you that you are indeed the control author and that no one has tampered with the control;
To sign a component using the verification code tool, you must obtain a digital certificate from the certificate authority. The certificate contains information indicating that the specific software program is genuine, this ensures that other programs can no longer use the identity of the original program. The certificate also records the issue date. When you try to download the software, Internet Explorer will verify the information in the certificate and whether the current date is before the certificate deadline. If the downloaded information is not up-to-date and valid, Internet Explorer displays a warning;
In the default security level of IE, before the ActiveX control is installed, you can choose whether to continue to install and run the software based on your trust in the software publisher and the software itself.
The network Real-name plug-in is signed using the digital certificate issued by Verisign, an international authoritative security vendor. Therefore, the authenticity and security of the network Real-name plug-in can be ensured.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.