A
awfigsk
Unregistered / Unconfirmed
GUEST, unregistred user!
这部分代码相当于是在initialization段内吗?<br><br><br>unit Splash;<br><br>interface<br><br>uses Windows, Classes, Graphics, Forms, Controls, StdCtrls,<br> ExtCtrls;<br><br>type<br> TSplashScreen = class(TForm)<br> StatusPanel: TPanel;<br> end;<br><br>var<br> SplashScreen: TSplashScreen;<br><br>implementation<br><br>{$R *.DFM}<br><br>[red]begin<br> SplashScreen := TSplashScreen.Create(Application);<br> SplashScreen.Show;<br> SplashScreen.Update;<br>end.[/red]<br><br>红色这部分代码是相当于在initialization部分吗?如果在一个项目中引用了该单元,这部分代码在主程执行前执行?是这样吗?