Solved

C++ Builder and Delphi

Posted on 2002-07-05
3
239 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
Comment Utility
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
Comment Utility
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
Comment Utility
Sure, you have to include the .h file where TForm4 is declared.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now