When TForm is created in Builder (or Delphi), the code is added to main to create these forms when the application starts:
Application->CreateForm( __classid( TxForm), &xForm );
this simplifies the job, but is it reasonable when applications have 10, 20, 50, 100 forms? I guess this can capture all kinds of memory and system pens. A form can always be created on the fly if necessary, deleting it using the "Project-> Parameters-> Forms" dialog box and:
std::auto_ptr< TxForm > myForm( new TxForm( this )); myForm->ShowModal();
So the question is, is it better for C ++ Builder to do this in its own way or manually create a form if necessary?
delphi vcl c ++ builder
Gregor brandt
source share