web| Control | The page uses VB to make the third party control a cab package (used on a Web page)
Due to the needs of the work, the author needs to display CAD files on the Web page (no CAD on the client machine). Due to time constraints, write control is not too late, there is no way to search the Internet a lap. Found a software, the size of about 8 trillion. Can be used to browse files of the DWG type. It was used to find that it was using a DLL-type control with two attached DLL files.
If you want to use a control on a Web page, the control needs to be typed into a cab-type package. On the internet to find a dozen cab bag tool, named IExpress. However, if you use this tool to package the need to write the INF file manually, the INF file structure is more complex, manual writing error prone. Think for a moment, think VB with the packaging tool can make CAB file package. However, VB packaging tools to start must choose a VB project. So with VB built a control with the name of the project, compiled a bit, and then with the VB with the tools to pack, packaged type choose the Internet type of installation package. To select a file this step, you need to remove the extra files, because this third-party control is not written by VB, so do not have to take VB Run-time Library. Add the main control DLL and two attached DLLs of the Third-party control to the package, and then start packing.
After the package has finished writing a test page, tried on the machine no problem (because the computer has already installed the control), so on the other machine test, not normal installation control, the page shows a red fork. View the control installation log file under the IE Temp folder, and the content display control does not register properly. Went to the internet to find some information, did not find the reason. Later, VC with the Dependency Walker tool to view the control of the DLL, found inside also contains three other DLLs, respectively: MSVCR71.dll, Msvcp71.dll, Mfc71.dll. The three files were added to the package, and after the test, everything was fine.
The script that uses the control on a Web page is as follows:
<HTML>
<HEAD>
<TITLE>BravaACX.CAB</TITLE>
</HEAD>
<BODY>
<!--If any of the controls on this page require authorization, you must
Create an Authorization package file. Run Lpk_tool. EXE to create
The requested LPK file. Lpk_tool. EXE will be found in the ActiveX SDK,
Http://www.microsoft.com/intdev/sdk/sdk.htm. If you have Visual
Basic 6.0 CD, you can find it in the \tools\lpk_tool directory.
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.