Introduction.
Creation of an executed file.
The master of setting.
Usage of the master.
Creation of the distribution kit for the calculator project.
Creation of the distribution kit of a control item.
All that is written in Visual Basic should be fulfilled out of the environment of the developer Visual Basic, ?????? a file Msvbvm.dll. This file contains all subroutines of support and essential elements of control, which are necessary Visual Basic to fulfill anything you like. It enough big file (1,3). But, fortunately, has no value, how many applications Visual Basic the user in one and too fulfills time, all the same in storage one copy of this file is necessary only.
For each user control item in application and for this purpose that is a part of your control item, the user control item file is necessary. These files are rather small - often ????? 30? everyone. As a result that appears necessary for installation of executed files is not by the machine where installation even the elementary executed file Visual Basic, even subjected to compression by means of the master of setting demands 2 or more disks is produced.
And, at last, when fulfills an executed file which contains a user control item, the.ocx-file should be in the system catalog or in one directory with a.exe-file. The master of setting automatically allocates files in ?????????????? a place. (If ??????????????.ocx ?????? can be found, the virtual machine Visual Basic deduces the error report and completes performance.)
Creation of an executed file
The one who before purchase of the copy Visual Basic read what or advertizing about it, probably, heard that the Visual Basic 5-first version Visual Basic which allows to create really executed files. Someone it is possible, is surprised that it means. First of all, prior versions Visual Basic always broadcast the code Visual Basic in a certain r-code. It is an intermediate language which differs from machine code of the microprocessor of Intel. And then the received r-code was line by line interpreted in Intel machine code. But it is not effective. For example, for cycles explicitly it is easier to fulfill ?????????????? in machine code once and not to transform the code each time at loop body performance.


Compile to P-Code. Allows to compile the project in the r-code. Though it is fulfilled more slowly, but the necessary disk space can be considerable smaller in comparison with the code compiled in machine code of the microprocessor.
Compile to Native Code. Allows to compile the project, using the native code with ????????????? that is selected by means of the remained buttons. They are described in the following table.
|
|
|
|
|
As much as possible increases speed of performance. |
|
|
Minimizes the size. Possibly, by it of powerful benefit before simple usage of a r-code it will not be reached. |
|
|
Compiles without optimization. |
|
|
Optimizes the code in such a manner that it is better works on processor Pentium Pro. The code generated with this option, will work and with earlier processors, but on processors 486 and Pentium (even if they use MMX), will work more slowly, than that code, but generated without this option. |
|
|
It is used, when it is necessary to launch the VB-code on a separate debugger, such as one of debuggers of firm NuMega or that are delivered with Microsoft DevStudio components. |
Advanced Optimizations. Pushing of this button displays the dialogue panel Advanced Optimizations shown on the right. It is not recommended to change any options in this panel, installed by default - they only for the big experts VB.

The master of setting is really excellent tool which allows to create distribution kits of applications and control items practically without efforts. It is really independent program which is called Application Setup Wizard. It is possible to launch it, for example, by means of a submenu Visual Basic 5 in menu Start. (We Assume that standard setting then the program of the master of setting will be called VB\setupkit\kitfil32\Setupwiz.exe) is used.
When the master of setting is launched, we get on the initial screen of the master of setting which looks, as fig. 23-4.
Let's understand with points the main panel. First of all, here there is a button of help Help which deduces the help file for the master. The button of output Exit in upper the right to a panel corner closes the master of setting. The button of advance Next moves to a following step of the master, and button Back returns to the previous. We click on button Next to pass to the first real screen of the master.
Further descriptions of new points of this screen are resulted.
Project File Text Box. A project file is the name of a file with.vbp extension. It is possible to click on button Browse to open the standard dialogue panel which allows to carry out file search.vbp or.ctl (for a control item).
Rebuild the Protect. The files, which distribution kits form, are independently executable. If it is necessary to create, a separate product anew, it is necessary to mark this option. The master will create automatically a new.ehe-file, or.??? ? if.??? is not found.
Options. Possible options are described in the following table.
|
|
|
| Creat a setup Programm | Informs on that it is required to create the normal setup on floppy disks. If also to install options Generate Dependency File ????? setting will be created by the report containing the information on files which are used by application. |
| Creat Internet Download Setup | This option is used only for control items ActiveX and creates all necessary files in such a manner that someone on network Internet can use this code. |
| Generate Dependency File Only | Setting of this option only creates the report containing the information on files which are used by application. |
For descriptive reasons we assume that it is necessary to create distribution kits two various application:


Creation of the distribution kit of a control item in the master of setting for usage on separate system is in essence similar to creation of the distribution kit of application. So in this section we concentrate on usage of the master for creation of a file of setting Internet Download Setup so that the control item could be used in Internet Explorer.
Let's launch the master. It is necessary to note that we want to create the control item distribution kit so that it could be loaded from Internet or in an intranet. After decision-making to make Interenet-installation we click by button Next and we pass to the following screen.
Let's click by button Next. There will be a following screen. The Microsoft gives an option which allows the user to load only certain standard files, as, for example, a huge file of the virtual machine Visual Basic, necessary for a control item, directly from a Microsoft site at the first usage of a control item in Internet Explorer. It is valid very useful option as if users already have any of necessary files by the machine Internet Explorer it is reasonable enough not to load them anew.
In the core it is all. The remained screens of the master are similar to that we already considered.