Use VB to packet third-party controls into a CAB package (used on the web page)
Due to the need for work, the author needs to display the CAD file on the web page (not CAD on the client machine). Due to time urgent, the current control is not too late, there is no way to search for a circle online. Found a software, the size is about 8 megabytes. Can be used to browse the DWG type file. Used, found that it is a DLL type control and has two attached DLL files.
If you want to use a control on a web page, the control needs to be a CAB type package. I found a tool to play the CAB package, named IExpress. However, if you use this tool to pack the INF file, the INF file is more complicated, and the manual writing is easy to have an error. Think of it, I think the VB combo tool can make a CAB file package. However, VB's packaging tools begin to choose a VB project. So use the VB to build a working name as the control name, compiled, then use the VB's own tool to package, package the type to select the installation package of the Internet type. When you choose a file, you have to remove excess files because this third-party control is not written in VB, so you don't have to with VB's run. Add the main controls of the third party control and the two attached DLLs to the package, and then start packaging.
After the package is finished, I have written a test page. I have no problem on this machine (because the control has been installed), so tested it on other machines, I can't install the control, display a red fork on the page. . Check the control installation log file under the IE Interim Folder, the content display control cannot be registered normally. Find some information on the Internet without finding the reason. Later, I used the Dependency Walker tool that comes with VC to view the DLL of the control, and the other three DLLs were also found in: MSVCR71.DLL, MSVCP71.DLL, MFC71.DLL. Just add these three files to the bag, after testing, everything is normal.
The script of using the control on the web page is as follows:
HEAD>
Create an authorized package file. Run LPK_TOOL.EXE to create
The required LPK file. LPK_TOOL.EXE will be found in ActiveX SDK,
Http://www.microsoft.com/intdev/sdk/sdk.htm. If you have Visual
Basic 6.0 CD, you can find it under the / Tools / LPK_Tool directory.
Here is an example of object tags:
Object>
->