Application.Initialize//用初始化一个应用程序
Application.CreateForm//用来在创建下个窗体
Application.Run       //用来执行程序呀
呵呵,故名思义嘛。不过一般都要写在工程文件中。

解决方案 »

  1.   

    Application.InitializeDescriptionInitialize is the first method called by the project source file. It calls the InitProc procedure pointer. By default, the call to Initialize for the application does nothing because the default InitProc pointer is nil .To use Initialize, the InitProc pointer must be predefined. This can be accomplished in one of two ways:Include a unit that assigns a procedure to InitProc in its initialization section, such as the ComObj unit. You can make this assignment in the initialization section of any of your units.
    Create a custom initialization procedure that assigns a value to the InitProc pointer, and add a call to this procedure to the project source prior to the call to Initialize (that is, add it to the initialization section of the unit in which it is declared).Warning: Only one instance of InitProc can be defined in an application. If more than one unit assigns a value to InitProc, only the last assignment will work. You can, however, call the previous value of InitProc from an initialization procedure, so that all initialization procedures are executed.For projects that do not assign a value to InitProc, the call to Initialize can be safely deleted from the project source.Note: Although Initialize is the first method called in the main project source code, it is not the first code that is executed in an application. The application first executes the initialization?section of all the units used by the application.2:Application.CreateForm请参考
    http://www.csdn.net/expert/topic/966/966004.xml?temp=.53321473:application.runDo not call Run. When creating a new project, The IDE automatically creates a main program block in the project file that calls the Run method. When the application is executed, the application抯 Run method is called.Run contains the application抯 main message loop. The call to Run does not return until the application抯 message loop terminates.
      

  2.   

    Application.Initialize//用初始化一个应用程序
    Application.CreateForm//用来在创建下个窗体 and 运行
    Application.Run       //用来执行程序呀 and 关闭
    呵呵,故名思义嘛。不过一般都要写在工程文件中。