
(*
 Delphi Object and Component Reference
#{bmc bm9.BMP} RegisterComponents example
The following code registers several components, one on the System palette page that already exists, and some on a new palette page that is created when the components are installed.
*) 
namespace Newcomps 
{
  void __fastcall Register()
  {
     TComponentClass sysclasses[1] = {__classid(TSystem1)};
     TComponentClass custclasses[2] = {__classid(TCustom1), __classid(TCustom2)};
    RegisterComponents("System", sysclasses, 0);
    RegisterComponents("NewPage", custclasses, 1);
  }
} 
