Delphi7 directory structure ---- Beginner Reference

zhaozj2021-02-16  51

Open Delphi installation directory, such as C: / Program Files / Borland / Delphi7, you will see some files and folders in the directory:

2 Source: All source code provided by Delpi, including VCL, WebSnap, intraweb, toolsapi, etc., we usually find the source code of Delphi to find it. There are also some source of Delphi's tools, which are also placed under this, such as the source code of Borland Socket Server (SCKTSRVR.exe), the Web Server (httpsrvr.dpr) for Intraweb (httpsrvr.dpr), etc. Every time you have time to see these source code. For improving yourself, you have a big benefit, such as yourself to make a web server that supports CGI and supports Session. At this time, you can study the httpsrvr.dpr.DPR project, you can use it slightly. Multi-study Delphi's own source code is only good and there is no harm. Maybe you can't use it when you study, but after a period of time, you have to do related projects. At this time, there is a number in your heart.

2 Rave5: Delphi7 integrated recent report tool. In this directory, all support files are stored, such as Rave.exe, which is a tool for designing the RAVE report format. You can modify the report format template by it. Demo is stored in an example of reporting with RAVE5. Do a report, you must see this example.

2 Projects: Store your own project, this is Delphi's directory for us to facilitate management, but we often store this, our own project is best stored in your own specific specified directory, which is more beneficial to manage yourself Code. Because many people are used to put Delphi in the system default directory, and this disk is often a system disk. If you put your project in this directory, it will be easily infringed or in the Royal Delphi. The heart is deleted. This directory is Delphi designed for us, we can use it.

2 OCX: These directories are used to store newly generated Delphi call code when installing new OCX controls. The code in the servers directory in this directory is the code for storing the installation of the Office system interface.

2 Objrepos: This directory stores Delpphi template, including template windows and template projects. For example, click File-> New-> Other ..., switch to the Forms page, select About Box, then click "OK". It will see an About Form that automatically generates an ABOUT. And 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 open the editor with Delphi to modify it, this time you generate about form from this template again. It is what you want. There are other template windows of the Forms page, as well as the Dialogs page, the template code such as the Business page is exported to this directory. There is also a template project in this directory. Win2kApp, SDIAPP, and MDIAPP directory. These template windows or these template works can be invited to templates they want themselves. If you think these templates are not enough, you can add it. Add method:

Ø Template Project: Open the project to be a template, click Project-> Add to Reposipory.

Ø Template window: Click Right click in the window to be a template, select Add to RepoSIPORY ....

2 MergeModules: Store related support files used when using Microsoft Windows Installer Service creates installations. 2 LIB: Mainly stored the DCU intermediate file generated by Delphi, the resource file used by these source code, used to compile the connection, which is conducive to speeding the compilation speed of Delphi, of course, without these RES file projects Compilation.

2 Imports: Mainly stored the DCU and PAS files generated after the Active Control.

2 HELP: Store all the help files of all Delphi brought and third-party tools and controls. There are three subdirectory in this directory:

Ø Tools: hcw.exe Use it to make a Windows Help file.

Ø Intraweb: Store the help file of intraweb.

Ø EXAMPLES: It is some of the classic examples of Delphi. Such as jpeg, bitmap directory, is a good example of handling picture drawing, if you have this need, you can refer to it; regini is a good example of operating the registry, if you don't read and write the registry, watch you It will definitely understand that the example in Batchmv, Batchmv2 is an example of using BDE's TBATCHMOVE brigade. Take a slight improvement to become your program's backup data. Like these examples, you will refer to it when you need it.

2 Demos: My favorite directory. Instructed is an example of using Delphi, almost all of Delphi, such as database programming (DB), three-layer (Midas), intraweB, ADO programming (ADO), QuickRpt components (Quickrpt) The use of network components (Internet, in the forum, there are often some netizens asking how to write a domain network chat program, in fact, there is a good example, such as NetChat), how to view resources in EXE or DLL (RESXPLOR, I often Use it to extract icons in EXE or DLL, very easy to use) ... and some are examples of write components, such as Demolbl, PropEdit, etc. If you are a delphi's initiator, learn to learn every example, it should be said that most developments can be done with Delphi.

2 bin: The main directory, the executable executable of Delphi is stored here. Also include all tools provided by Delphi. Such as bordbg70.exe is required for remote debugging of Delphi; dbexplor.exe is a common SQL Explorer; brcc32.exe resource compiler, uses it to use RES files, etc .; BRCC32.exe's tools in command mode ...

Of course, I don't know that these directorys can also use Delphi, but they may have to walk a lot of detours for beginners, if they are familiar with these catalogs, they will be more heart, and the chest is bamboo.

Related:

Behind Delphi --- Beginner Reference 2 (1)

Behind Delphi --- Beginner Reference 2 (2)

(First write things, I hope everyone will include, if you need to reprint, please indicate the source and the author http://haitian.myrice.com)

转载请注明原文地址:https://www.9cbs.com/read-26516.html

New Post(0)