Delphi installation Control

Source: Internet
Author: User
Tags dbx

Set the path, or copy the file to the corresponding folder.
Let me install the control http://www.cppfans.com/vclcontrol.asp for you again.
FAQs about VCL controls (installation, uninstallation, and BCB upgrade)
Control Installation
(*. BPL) 1. Select BCB menu file → close all (close all files)
Choose "BCB"> "project"> "options"> "packages"> "add", select the *. BPL file, and click "open ".

2. BCB menu: Project → options → directories/conditionals
① Include path "…" on the right Button to add a folder containing *. H files
② "…" On the right of library path Button to add a folder containing the *. Lib File

3. Add a path
① For Windows NT/2000/2003/XP, you must go to: My computer> Properties> advanced> environment variables> system variables:
Select "variable" as "value" of path in the list and press: "edit" to add a folder containing *. BPL files.
② For Windows 9x, add a folder containing *. BPL file to Path = in the C: \ autoexec. BAT file.
③ Folders are separated by semicolons. This modification takes effect only after the computer is restarted.

2. It is very important to directly affectProgramCompilation
Among them, 3 is used to ensure that the program that uses dynamic library compilation finds the dynamic library, and does not use static library compilation.
We recommend that you do this in steps 1-3 when installing the control.
Control Installation
(Source program) 1. source program containing *. BPK
① Open the *. BPK file (*. BPK is the control project file)
② Select compile and install)

2. source program without *. BPK:
① Create a project file → new → other → package, and add files such as *. cpp, *. Pas, *. RC to the Project
② Compile and install

Note: To ensure the normal use of the control, follow the steps 2 and 3 in the *. BPL Control File above to correctly Add the path to the corresponding location.
To uninstall a widget, cancel all the steps for installing the Widget:
1. Select BCB menu file → close all (close all files)
Choose BCB menu: Project → options → packages. In the design packages list, select the control to be deleted.
Click the Remove button to delete the control.

2. If no files are needed in the folder of the deleted control, you can delete the folder from the BCB search path:
BCB menu: Project → options → directories/conditionals
① Include path "…" on the right Button to delete unused folders.
Do not delete the default BCB folders: $ (BCB) \ include and $ (BCB) \ include \ VCL.
② "…" On the right of library path Button to delete unused folders
Do not delete the default BCB folders: $ (BCB) \ Lib \ OBJ and $ (BCB) \ Lib

3. If no files are needed in the folder of the deleted control, you can delete the folder from the search path of the operating system:
① For Windows NT/2000/2003/XP, you must go to: My computer> Properties> advanced> environment variables> system variables:
Select "variable" as "value" of path in the list and press: "edit" to delete unused folders;
② If it is Windows 9x, You need to delete unused folders after Path = in the C: \ autoexec. BAT file;
③ Folders are separated by semicolons. This modification takes effect only after the computer is restarted.

4. You can delete files and folders of unused controls.

2. If the control file is not deleted and the control file is not deleted, compilation of the program may be affected (these files may be messy sometimes)
3. If you do not do this, it will bring garbage to the system. If the control file is not deleted and the path is retained, it may affect the running of the program in the future.
C ++ Builder
Upgrade: If C ++ builder is an upgraded version, the system prompts you that the files of some controls cannot be found when compiling your original program. The reason is that the file names of controls of different BCB versions are different, solution:
1. Close the project with an error
2. Use notepad to open the wrong project file *. BPR, delete the problematic file name, and save

This method is generally successful. If this method is invalid, you can create a new project file.
The disadvantage of re-establishing the project file is that the special configuration of the original project file is lost. You need to know the special configurations (such as the comparison mark and version information) in the original project file ).

 

Appendix: fastreport for Delphi7 General Installation Method

Please delete the original fr control before installation.

1. Add the fastreport path under the "library" tab in "Tools | environmet options.
Fastreport \ fastqb

Fastreport \ fastscript
Fastreport \ Source
Fastreport \ source \ BDE

Fastreport \ source \ ado

Fastreport \ source \ ibx

Fastreport \ source \ dbx
Fastreport \ source \ exportpack

2. Generate a Chinese File
Run the "recompile.exe" file and set the corresponding options. My settings are as follows:
1. Select the compiler to Delphi7
2. Select the fastreport version to Enterprise

3. Select the teechart version to teechartstd

4. Change Language to under what you want to do: Set it to Chinese (this is also used)

3. Compile the running package (for other versions, select the corresponding file compilation for Delphi)
-Fastreport \ fastqb \ fqb70.dpk

-Fastreport \ fastscript \ fs7.dpk
-Fastreport \ fastscript \ fsdb7.dpk
-Fastreport \ fastscript \ fsbde7.dpk
-Fastreport \ fastscript \ fsado7.dpk
-Fastreport \ fastscript \ fsibx7.dpk

-Fastreport \ source \ frx7.dpk
-Fastreport \ source \ frxdb7.dpk
-Fastreport \ source \ ADO \ frxado7.dpk
-Fastreport \ source \ BDE \ frxbde7.dpk
-Fastreport \ source \ ibx \ frxibx7.dpk
-Fastreport \ source \ DBX \ frxdbx7.dpk
-Fastreport \ source \ exportpack \ frxe7.dpk

4. Copy the following text to the windows \ system32 directory.
-Fs7.bpl
-Fsdb7.bpl
-Fsbde7.bpl
-Fsado7.bpl
-Fsibx7.bpl
-Frx7.bpl
-Frxdb7.bpl
-Frxado7.bpl
-Frxbde7.bpl
-Frxibx7.bpl
-Frxdbx7.bpl
-Frxe7.bpl
If Delphi7 does not modify the environment variables, these files are in the \ Borland \ Delphi7 \ projects \ BPL directory by default.
I did not do this step, because I personally feel that the effect of copying is the same without copying. As long as the program can find these files!

5. Compile and install the following files
-Fastreport \ fastscript \ dclfs7.dpk
-Fastreport \ fastscript \ dclfsdb7.dpk
-Fastreport \ fastscript \ dclfsbde7.dpk
-Fastreport \ fastscript \ dclfsado7.dpk
-Fastreport \ fastscript \ dclfsibx7.dpk

-Fastreport \ source \ dclfrx7.dpk
-Fastreport \ source \ dclfrxdb7.dpk
-Fastreport \ source \ ADO \ dclfrxado7.dpk
-Fastreport \ source \ BDE \ dclfrxbde7.dpk
-Fastreport \ source \ ibx \ dclfrxibx7.dpk
-Fastreport \ source \ DBX \ dclfrxdbx7.dpk
-Fastreport \ source \ exportpack \ dclfrxe7.dpk

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.