Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

C++ Builder and Delphi

Posted on 2002-07-05
3
Medium Priority
?
265 Views
Last Modified: 2010-04-04
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
0
Comment
Question by:totok
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
TOndrej earned 400 total points
ID: 7133536
TForm4 *Form4 = new TForm4(Application);
Form4->ShowModal();
delete Form4;

I hope I haven't made any mistake; my C++ is very rusty ;-)
0
 

Author Comment

by:totok
ID: 7133640
Hello TOndrej,

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

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

Totok
0
 
LVL 8

Expert Comment

by:TOndrej
ID: 7133642
Sure, you have to include the .h file where TForm4 is declared.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question