Home > Back-end >  Online, such as: rookie a great god turn delph code BCB: type TFrameClass=class of TCustomInfoFrame;
Online, such as: rookie a great god turn delph code BCB: type TFrameClass=class of TCustomInfoFrame;

Time:10-05

On TPanel loading different TFrame instance, and that these different instances are inherited from a common parent Frame, these have been achieved, but in the void _fastcall TMainForm: : CreateFrame (TObject * Sender, TFrameClass * & amp; FrameType) including Frame=new FrameType (MainForm); Error:
(1) the Type name expected
(2) always convert 'int *' to 'CustomInfoFrame *'
(3) the statement missing

CodePudding user response:

 Frame=new TFrameClass (MainForm); 

CodePudding user response:

Or an error: the Compiler could not generate defalt constructor for the class 'TFrameClass', I am a rookie one, can you be more detail?