C++ Builder and Delphi

Delphi Code
==============
Form4:=TForm4.Create(Application);
Form4.ShowModal;
//
Form4.Free;

How can I write the code above in C++ Builder (v5.0)?

Thank you,
Totok
totokAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
TOndrejConnect With a Mentor Commented:
TForm4 *Form4 = new TForm4(Application);
Form4->ShowModal();
delete Form4;

I hope I haven't made any mistake; my C++ is very rusty ;-)
0
 
totokAuthor Commented:
Hello TOndrej,

Thanks for the answer, but unfortunately there is an error.

I got a following error message : Undefined structure 'TForm4';

Totok
0
 
TOndrejCommented:
Sure, you have to include the .h file where TForm4 is declared.
0
All Courses

From novice to tech pro — start learning today.