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

Learn How To Build A Modern C++ “Hello World” Example For Windows

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). FireMonkey projects are Multi Device (multi-platform) applications that you can compile and run on Windows, MacOS, iOS and Android .

“Hello World” with Memo Component

TMemo is good to display all outputs as in console applications.
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 Memo and a Button from the Palette to your Form
– 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


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

33+ years of coding with more than 30+ programming languages, mostly C++ on Windows, Android, Mac-OS, iOS, Linux and some other operating systems. Dr. Yilmaz Yoru was born in 1974, Eskisehir-Turkey. He graduated from the department of Mechanical Engineering of Eskisehir Osmangazi University in 1997. One year later he started to work in the same university as an assistant. He received his MSc and PhD degrees from the same department of the same university. He has married and he is a father of a son. Some of his interests are Programming, Thermodynamics, Fluid Mechanics and Artificial Intelligence. He also likes the graphical 2D & 3D design and high-end innovations.
Related posts
C++C++11C++14C++17Introduction to C++Learn C++

This Is How To Get A Substring of a Wide String in C++

C++C++11C++14C++17Introduction to C++Learn C++

How To Access Individual Character Elements Of A C++ String

C++C++11C++14C++17Introduction to C++Learn C++

The Right Way To Access Character Elements Of A Wide String

C++Language FeatureLearn C++

You NEED to Learn To Use JSON (JavaScript Object Notation)

Worth reading...
Top C++ Compilers for Windows in 2020