Solved

C++ Builder and Delphi

Posted on 2002-07-05
3
246 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 100 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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