Solved

C++ Builder and Delphi

Posted on 2002-07-05
3
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: 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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

707 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