Delphi7 directory structure:
Open the Delphi installation directory, such as C:/Program Files/Borland/Delphi7, you will see that the directory contains some files and folders: Source: stores all the source code provided by Delpi, including VCL, WEBSNAP, IntraWeb, ToolsAPI and other source codes, if we usually want to find the source code of delphi, we can search here. The source code of some tools provided by Delphi is also placed under it, such as borland socket Server (ScktSrvr.exe) source code, IntraWeb debugging Web server (HTTPSrvr.dpr), etc. If you have time to look at these source codes, it will be of great benefit to improve yourself. For example, if you want to make one that supports CGI The WEB server supports Session. At this time, you can study the HTTPSrvr.dpr project and use it with slight modifications. There are only advantages and no disadvantages in studying the source code that comes with Delphi. You may not need it when you are studying, but after a while, you will have an idea when you have to complete related projects. Rave5: the latest reporting tool integrated with delphi7. This directory stores all supporting files of Rave5, such as Rave.exe, which is a tool used to design Rave report format. Through it, you can modify the report format template. Demo stores examples of using Rave5 to make reports. To use Rave When making reports, be sure to look at this example. Projects: Store your own projects. This is the directory prepared by Delphi for us to facilitate management, but we often don’t store it like this. It is best to store our own projects in our own specific specified directory, which is more conducive to managing our own projects. code. Because, generally, many people are used to installing Delphi in the system default directory, and this disk is often the system disk. If you place your project in this directory, you will be easily affected by viruses or may not install Delphi properly. I deleted the code carefully. This directory is designed for us by Delphi, we don't need to use it. Ocx: These directories are used to store the newly generated Delphi calling code when installing a new Ocx control. For example, the code in the Servers directory under this directory stores the code that calls the Office system interface. Objrepos: This directory stores Delpphi templates, including template windows and template projects. For example, click File->New->Other…, switch to the Forms page, select About Box, and then click OK. You will see an About form automatically generated. The source code of this About form template is stored in this directory. We can find About.pas and About.dfm in this directory. You can use Delphi to open and edit it, so that next time you generate an About form from this template , which is the Form you want. There are also other template windows for the Forms page, as well as the template codes for the Dialogs page, Business page, etc. are all stored in this directory. There are also Win2Kapp, SdiApp and MdiApp directories under this directory that store template projects. These template windows or these template projects can be modified to the templates you want at will. If you feel these templates are not enough, you can add more. Adding method: Template project: Open the project to be a template and click Project->Add to reposipory. Template window: Right-click in the window that you want to use as a template and select Add to reposipory…. MergeModules: Stores related support files used when using Microsoft Windows Installer service to create installation programs.