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, etc., if we usually want to find the source code of delphi, we can search here. There are also source codes for some tools provided by Delphi, 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 sessions. At this time, you can study the HTTPSrvr.dpr project and make some modifications to use it. 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 ourselves. 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 put your project in this directory, you will be easily affected by viruses or fail to install Delphi. 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 newly generated Delphi calling code when installing new Ocx controls. 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, click Project->Add to reposipory. Ø Template window: Right-click in the window to be a template and select Add to reposipory…. ² MergeModules: Stores related support files used when using Microsoft Windows Installer service to create installation programs. ² Lib: Mainly stores the DCU intermediate files generated by the source code provided by Delphi and the resource files used by these source codes. These DCU and RES are used during compilation and connection, which is helpful to speed up the compilation of Delphi. Of course, the project cannot be completed without these RES files. compiled. ² Imports: Mainly stores the dcu and pas files generated after importing Active control. ² Help: Stores help files for all Delphi's own and third-party tools and controls. There are three subdirectories in this directory: Ø Tools: HCW.EXE can use it to create Windows help files. Ø IntraWeb: Stores IntraWeb help files. Ø Examples: There are some good classic examples of using Delphi. Directories such as Jpeg and Bitmap are good examples for processing pictures and drawings. If you have needs in this regard, you can refer to them; the examples under RegIni are good examples for operating the registry. If you don’t know how to read and write the registry, you can read it. You will definitely understand; the examples in the BatchMv and BatchMv2 directories are examples of using BDE's TbatchMove to import data. With slight improvements, it can become a functional module for backing up data for your program; Menu and Menu2 are examples of using menus... Anyway, I like these examples better and will refer to them when needed. ² Demos: My favorite directory. It contains examples of using Delphi, covering almost all aspects of Delphi, such as database programming (DB), three-tier (Midas), use of IntraWeb components (IntraWeb), Ado programming (Ado), and use of Quickrpt components (Quickrpt) , the use of network components (Internet , some netizens often ask on the forum how to write a LAN chat program. In fact, there are good examples, such as NetChat), how to view and extract resources in exe or Dll (ResXplor, I often use it to extract exe or Dll The icons in are very useful)... There are also some examples of writing components, such as Demolbl, PropEdit, etc. If you are a beginner in Delphi and learn to thoroughly study every example, it should be said that you can use Delphi to complete most of the development work. ² Bin: Main directory, Delphi’s executable program is stored here. Also includes all the tools provided by Delphi. For example, BORdbg70.exe is necessary for remote debugging of Delphi; dbexplor.exe is a commonly used SQL Explorer; brcc32.exe resource compiler can be used to produce Res files, etc.; brcc32.exe is a tool for compiling programs in command mode... Of course, I don’t know that these directories can also be used well with Delphi, but beginners may have to take a lot of detours. If you are familiar with these directories, you will be more comfortable and confident in using them.
Related:
Behind Delphi---Reference for Beginners Part 2 (1) |