![]() Then, the resource compiler compiles any resources, such as the program's icon and form files, into binary resource files. First, the Object Pascal compiler compiles the project's units into binary object files. Several things happen during this process. When you tell Delphi to compile the project, it compiles the project source, the main form unit, and any other units in the project. The main form resource file and project resource file are binary files that describe the main form and the application's icon. ![]() Delphi will create an additional unit file for each new form you create. The main form unit contains the class declaration and definition for the main form's class. You can view the project source file by choosing Project | View Source from the main menu. The project source file is the file that contains the Delphi startup code. When you first create a project, Delphi creates a minimum of four files (assuming a typical Delphi GUI application): Delphi might create several backup files depending on the number of source files in the project and the project options you have set. NOTE: Files with extensions that begin with a tilde (~) are backup files. (The exact number depends on the Delphi IDE options.) First, let me tell you what happens when Delphi builds an application then I'll explain what each of these files is for. You should see a total of about eight files. Now run Windows Explorer and locate the directory where you saved the project.(Yes, this exercise does have a purpose.) Choose File | Close All from the main menu.Choose Project | Build Test from the main menu.Type Test in the File Name field and click Save. Now you are prompted for the project name.Type the name MyUnit for the unit filename and click the Save Button.Be sure to navigate to the empty directory you just created. ![]() You will be prompted for the name of the unit file. ![]() Choose File | Save All from the main menu.Now choose File | New Application from the main menu. First choose File | Close All from the main menu so that you are starting from scratch.(You can name the directory anything you like.) Before you begin, create a fresh directory on your hard drive.To illustrate, let's create a simple application to get a look at some of what goes on when Delphi builds an executable file for your program. Delphi manages a project through the use of several support files. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |