C++C++11C++14C++17Code SnippetComponentsIntroduction to C++Language FeatureLearn C++

Modern Windows “Hello World” 3D Example in C++ Builder

If you are a beginner “Hello World” examples are good to understand feature of that programming language. It is good to understand how to edit text, how to write in its format, how to compile and link, how to debug and execute, how to deploy or release.

This example below is a modern “Hello World” example on Windows which runs with C++ Builder. Modern applications has GUI and they should be compatible with other operating systems (Windows, MacOS, iOS, Android). In C++ Builder FireMonkey projects are Multi Device (multi-platform) applications that you can compile and run on Windows, MacOS, iOS and Android .

“Hello World” 3D example in C++ with ViewPort3D

ViewPort3D component is good to display 3D images, easy to rotate, move or animate
Open C++ Builder or RAD Studio IDE
– Create a new MultiDevice Application in C++ Builder from File menu
– Save all units and project files with “HelloWorld_” prefix in a HelloWorld folder.
– Add ViewPort3D by dragging on to Form and a Text3D inside this ViewPort3D.
– Go to Properties of Text3D from the left side Object Inspector and find set Width 20, set WordWrap unchecked and find Text property, change it to “Hello World”
– Add a Button at the bottom of ViewPort3D

– Double click to Button to create OnClick event, inside that Button1Click event write lines as below

– Run project by hitting F9 or click to Run with Debugging
– If there is error, please check your lines
– If all is fine then save all project
– if you check your header file you will see all your objects (Memo, Button etc. ) are automatically defined as below. You don’t need to change anything here

close

Oh hi there 👋
It’s nice to meet you.

Sign up to receive awesome C++ content in your inbox, every day.

We don’t spam! Read our privacy policy for more info.

About author

Dr. Yilmaz Yoru has 35+ years of coding with more than 30+ programming languages, mostly C++ on Windows, Android, Mac-OS, iOS, Linux, and some other operating systems. He was born in 1974, Eskisehir-Turkey, started coding in college and graduated from the department of Mechanical Engineering of Eskisehir Osmangazi University in 1997. He worked as a research assistant at the same university for more than 10 years. He received his MSc and PhD degrees from the same department at the same university. Since 2012, he is the founder and CEO of Esenja LLC Company. He has married and he is a father of a son. Some of his interests are Programming, Thermodynamics, Fluid Mechanics, Artificial Intelligence, 2D & 3D Designs, and high-end innovations.
Related posts
C++C++11C++14C++17C++20Learn C++Syntax

What Is An Eligible Copy Assignment Operator In C++?

C++C++11C++14C++17C++20Learn C++Syntax

What Is A Trivial Copy Assignment Operator In C++?

C++C++11C++14C++17C++20Learn C++Syntax

What Is Uppercase T in C++ Syntax?

C++C++11C++14C++17Learn C++Syntax

What Is An Implicitly-defined Copy Assignment Operator In C++?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Worth reading...
Top 6 C++ IDEs For Building Native Windows Apps In 2020