RegisterComponents

Top  Previous  Next

What is translated > Special RTL/VCL-functions > RegisterComponents

 

Since components are an important feature of Delphi, a special translation routine was made for their registration in C++Builder too.

 

RegisterComponents('NewPage',[TCustom1, TCustom2]);

->

TComponentClass classes[2] = {__classid(TCustom1), __classid(TCustom2)};

RegisterComponents("NewPage", classes, 1);

 

For other compilers this function is useless.

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content