RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServiceApplication.CreateForm Method

Creates the service object or objects for the service application.

Pascal
procedure CreateForm(InstanceClass: TComponentClass; var Reference); virtual;
C++
virtual __fastcall CreateForm(TComponentClass InstanceClass,  Reference);

Do not call CreateForm in an application. The module manager calls CreateForm internally to register the service objects of the service application.  

CreateForm instantiates a TService object for each service contained in the service application. CreateForm is called automatically, for the first service, when the service application is first created. Subsequently, CreateForm is called for each new service added to the application. To add a new service, select File | New from the menu of the IDE main window and choose Service in the New Items dialog. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!