Extern "C" int FMXmain ()
{
Try
{
DWORD ITIME;
ITIME=GetTickCount ();
Application - & gt; The Initialize ();
Form1=new TForm1 (Form1);
Form1 - & gt; ShowModal ();
Application - & gt; CreateForm (__classid (TForm2), & amp; Form2);
While ((GetTickCount () - ITIME)/1000 & lt; 5);
Form1 - & gt; Hide ();
Form1 - & gt; Free ().
Application - & gt; The Run ();
}
The catch (Exception & amp; The exception)
{
Application - & gt; ShowException (& amp; The exception);
}
The catch (... )
{
Try
{
Throw Exception (" ");
}
The catch (Exception & amp; The exception)
{
Application - & gt; ShowException (& amp; The exception);
}
}
Return 0;
}
Under firemonkey, using show normal but can't display information such as the image text Form1, use showmodal can display but because is to use showmodal, the following program will not be executed, plus Form1 - when using the show & gt; Not Invalidate () forced to refresh,
Could you tell me how to solve this problem?
CodePudding user response:
Showmodal mode, you can delay and hidden close the code in the window of the showmodal processing,CodePudding user response:
In the FORM1 to delay shut down, it was useless, don't close the windowCodePudding user response:
Form1 - & gt; Refresh ()