Learn C++ | Learn C++ https://learncplusplus.org C++ Syntax, Resources, Tutorials, And Code Snippets Tue, 14 Jun 2022 23:21:01 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.5 https://i0.wp.com/learncplusplus.org/wp-content/uploads/2025/01/cropped-cbuilder-logo-128.png?fit=32%2C32&ssl=1 Learn C++ | Learn C++ https://learncplusplus.org 32 32 184929441 How To Create A Simple Database C++ App https://learncplusplus.org/how-to-create-a-simple-database-c-app/ Tue, 14 Jun 2022 23:19:17 +0000 https://learncplusplus.org/?p=11024 In this short video, Jim McKeeth will demonstrate how to create a simple database application using C++ Builder. Building a multi-device FireMonkey application with FireDAC and InterBase Creating a Database application in C++ Builder and...

The post How To Create A Simple Database C++ App first appeared on Learn C++.]]>
In this short video, Jim McKeeth will demonstrate how to create a simple database application using C++ Builder.

Building a multi-device FireMonkey application with FireDAC and InterBase

Creating a Database application in C++ Builder and connecting it to a database management system is surprisingly easy and quick. McKeeth utilizes the so-called CRUD functionality which simply stands as Create, Read, Update and Delete, the major operations which are implemented by databases. In this video, Jim McKeeth will demonstrate the creation of the database application from scratch. It started by dragging all the important components into the form. This includes FireDAC, a unique set of Universal Data Access Components for developing multi-device database applications for C++Builder.

In the video, McKeeth uses a sample Employee database provided by FireDAC. It also requires Custom Table and a Grid to display the data. You can also add Field Editor to create variables for each individual field but this is only optional. The video will also show us how to use the LiveBindings framework to bind all objects together, as well as the convenient use of Navigator bars when working with database applications.

To know more about how to easily create a database application using FireDAC and InterBase, feel free to watch the video below.

The post How To Create A Simple Database C++ App first appeared on Learn C++.]]>
11024
How To Make Your C++ Compiler Fly Much Faster https://learncplusplus.org/how-to-make-your-c-compiler-fly-much-faster/ Thu, 19 May 2022 05:00:00 +0000 http://learncplusplus.org/?p=3185 Use TwineCompile to improve your C++Builder C++ compiler speed and increase your productivity at the same time. TwineCompile is available via the GetIt Package Manager for 10.4 and newer for developers who have an Update...

The post How To Make Your C++ Compiler Fly Much Faster first appeared on Learn C++.]]>
Use TwineCompile to improve your C++Builder C++ compiler speed and increase your productivity at the same time.

TwineCompile is available via the GetIt Package Manager for 10.4 and newer for developers who have an Update Subscription.

TwineCompile lists its features as:

  • Advanced compile system uses multi-threading technology and caching techniques to make C++ compiles 50x faster!
  • Automatic background compiling engine ensures that files are compiled as fast as they are saved!
  • Tuned pre-compiled header handling system automatically maximizes simultaneous use of pre-compiled headers between multiple threads!
  • Seamless integration into the C++Builder IDE. Supports all versions including C++Builder 10.4 Sydney!
  • Theme support for all IDE themes providing a unified workspace!
  • Full support for 32-bit and 64-bit compilers!
  • FinalBuilder integration provided out of the box!

If you don’t have TwineCompile installed yet you can head over to Embarcadero GetIt to find out more and then install it via GetIt in the IDE.

The post How To Make Your C++ Compiler Fly Much Faster first appeared on Learn C++.]]>
3185
How To Make Your C++ Compiler Easily Compile Code Samples https://learncplusplus.org/how-to-make-your-c-compiler-easily-compile-code-samples/ Fri, 18 Feb 2022 05:00:00 +0000 http://learncplusplus.org/?p=2840 It is easier to keep code in your Markdown docs automatically up-to-date this year. In this video, you will learn how to make your C++ compiler compile codes more easily using some great tips by...

The post How To Make Your C++ Compiler Easily Compile Code Samples first appeared on Learn C++.]]>
It is easier to keep code in your Markdown docs automatically up-to-date this year. In this video, you will learn how to make your C++ compiler compile codes more easily using some great tips by Clare Macrae in her excellent CPPCon session.


Why not download a free trial of Enbarcadero’s C++ Builder and follow along with the tips yourself?

The post How To Make Your C++ Compiler Easily Compile Code Samples first appeared on Learn C++.]]>
2840
This Is How To Analyze Includes in C++ With Cppinclude https://learncplusplus.org/this-is-how-to-analyze-includes-in-c-with-cppinclude/ Fri, 24 Dec 2021 05:00:00 +0000 http://learncplusplus.org/?p=2942 Learn about Cppinclude, a tool for analyzing C++ “includes” in this video. Oleg Fedorenko takes us through the use of Cppinclude and why it is so useful analyzing the headers you have included in projects...

The post This Is How To Analyze Includes in C++ With Cppinclude first appeared on Learn C++.]]>
Learn about Cppinclude, a tool for analyzing C++ “includes” in this video. Oleg Fedorenko takes us through the use of Cppinclude and why it is so useful analyzing the headers you have included in projects so you can better optimize compile times and make sure everything is as efficient as possible.

Where can I get the Cppinclude C++ tool?

Cppinclude is publicly available at the following repository: https://github.com/cppinclude/cppinclude

Where can I learn how to use Cppinclude?

Here’s Oleg’s video all about it

The post This Is How To Analyze Includes in C++ With Cppinclude first appeared on Learn C++.]]>
2942
How To Automate Background Compiling C++ With TwineCompile https://learncplusplus.org/how-to-automate-background-compiling-c-with-twinecompile/ Mon, 15 Nov 2021 05:00:00 +0000 http://learncplusplus.org/?p=3191 Learn how to use the TwineCompile SORTA Automatic Background Compile feature of TwineCompile. Install TwineCompile via the GetIt Package Manager for C++Builder with Update Subscription. TwineCompile lists its features as: Advanced compile system uses multi-threading...

The post How To Automate Background Compiling C++ With TwineCompile first appeared on Learn C++.]]>
Learn how to use the TwineCompile SORTA Automatic Background Compile feature of TwineCompile. Install TwineCompile via the GetIt Package Manager for C++Builder with Update Subscription.

TwineCompile lists its features as:

  • Advanced compile system uses multi-threading technology and caching techniques to make C++ compiles 50x faster!
  • Automatic background compiling engine ensures that files are compiled as fast as they are saved!
  • Tuned pre-compiled header handling system automatically maximizes simultaneous use of precompiled headers between multiple threads!
  • Seamless integration into the C++ IDE. Supports all versions including C++Builder.
  • Theme support for all IDE themes providing a unified workspace!
  • Full support for 32-bit and 64-bit compilers!
  • FinalBuilder integration provided out of the box!

If you don’t have TwineCompile installed yet you can head over to Embarcadero GetIt to find out more and then install it via GetIt in the IDE.

If you want to read more on this site about the excellent TwineCompile click on this dynamic search link to see a list of articles: https://learncplusplus.org/?s=twinecompile

The post How To Automate Background Compiling C++ With TwineCompile first appeared on Learn C++.]]>
3191
Learn C++ With Back to Basics: Concurrency by Arthur O’Dwyer (CPPCon 2020) Video https://learncplusplus.org/learn-c-with-back-to-basics-concurrency-by-arthur-odwyer-cppcon-2020-video/ Mon, 28 Jun 2021 12:01:50 +0000 http://learncplusplus.org/?p=2587 One of the flagship features of C++11 was the implementation of std::thread, along with a full suite of primitive synchronizations and useful patterns such as thread-safe static initialization. In this video, we will inspire the...

The post Learn C++ With Back to Basics: Concurrency by Arthur O’Dwyer (CPPCon 2020) Video first appeared on Learn C++.]]>
One of the flagship features of C++11 was the implementation of std::thread, along with a full suite of primitive synchronizations and useful patterns such as thread-safe static initialization. In this video, we will inspire the threading model of C++11 and demonstrate how to use std::thread effectively. Audience will leave this session with a clear understanding of “multithreading tactics” in C++11 and beyond.

The post Learn C++ With Back to Basics: Concurrency by Arthur O’Dwyer (CPPCon 2020) Video first appeared on Learn C++.]]>
2587
Learn C++ With Exceptions Under the Spotlight by Inbal Levi (CPPCon 2020) Video https://learncplusplus.org/learn-c-with-exceptions-under-the-spotlight-by-inbal-levi-cppcon-2020-video/ Sun, 27 Jun 2021 12:01:52 +0000 http://learncplusplus.org/?p=2358 This video will be diving into exceptions, starting by understanding the error handling mechanism. It will also explore the evolution of exceptions and the design decisions that have led to the current version. By describing...

The post Learn C++ With Exceptions Under the Spotlight by Inbal Levi (CPPCon 2020) Video first appeared on Learn C++.]]>
This video will be diving into exceptions, starting by understanding the error handling mechanism. It will also explore the evolution of exceptions and the design decisions that have led to the current version. By describing and analyzing the alternatives, we will discover potential directions for the exceptions mechanism in future C++ versions.

The post Learn C++ With Exceptions Under the Spotlight by Inbal Levi (CPPCon 2020) Video first appeared on Learn C++.]]>
2358
Learn C++ With Not Leaving Performance On The Jump Table by Eduardo Madrid (CPPCon 2020) Video https://learncplusplus.org/learn-c-with-not-leaving-performance-on-the-jump-table-by-eduardo-madrid-cppcon-2020-video/ Thu, 17 Jun 2021 12:01:03 +0000 http://learncplusplus.org/?p=2353 You will have no trouble understanding improvements and realizing there are general principles that you can learn from. Improvements come form performance oversights that have lasted for decades. The techniques discussed are not specific but...

The post Learn C++ With Not Leaving Performance On The Jump Table by Eduardo Madrid (CPPCon 2020) Video first appeared on Learn C++.]]>
You will have no trouble understanding improvements and realizing there are general principles that you can learn from. Improvements come form performance oversights that have lasted for decades. The techniques discussed are not specific but general processor architecture, directly applicable to components. In addition, there are also examples of real life improvements.
The post Learn C++ With Not Leaving Performance On The Jump Table by Eduardo Madrid (CPPCon 2020) Video first appeared on Learn C++.]]>
2353
Learn C++ With No Touchy! A Case Study of Software Architecture with Immutable Objects by Borislav Stanimirov (CPPCon 2020) Video https://learncplusplus.org/learn-c-with-no-touchy-a-case-study-of-software-architecture-with-immutable-objects-by-borislav-stanimirov-cppcon-2020-video/ Wed, 16 Jun 2021 12:01:19 +0000 http://learncplusplus.org/?p=2349 This video is concerned with the multi-threaded and multi-process architecture of the software. It focuses on one of its components: immutable objects. It talks about how we ended up sticking to immutable objects, how they...

The post Learn C++ With No Touchy! A Case Study of Software Architecture with Immutable Objects by Borislav Stanimirov (CPPCon 2020) Video first appeared on Learn C++.]]>
This video is concerned with the multi-threaded and multi-process architecture of the software. It focuses on one of its components: immutable objects. It talks about how we ended up sticking to immutable objects, how they helped (and sometimes hindered) our development, what we invented to make them practical in C++, and the problems and solutions we encountered along the way.
The post Learn C++ With No Touchy! A Case Study of Software Architecture with Immutable Objects by Borislav Stanimirov (CPPCon 2020) Video first appeared on Learn C++.]]>
2349
How To Set Up Dev-C++ For Your First Project https://learncplusplus.org/how-to-set-up-dev-c-for-your-first-project/ Tue, 15 Jun 2021 21:10:35 +0000 https://learncplusplus.org/?p=6200 Dev-C++ is a free, open-source Integrated Development Environment updated by Embarcadero with a modernized fork in 2020. It is used to develop Windows applications, and only runs on Windows. It is a low-memory-footprint and high...

The post How To Set Up Dev-C++ For Your First Project first appeared on Learn C++.]]>
Dev-C++ is a free, open-source Integrated Development Environment updated by Embarcadero with a modernized fork in 2020. It is used to develop Windows applications, and only runs on Windows. It is a low-memory-footprint and high performance development environment built in Delphi. Setting up Dev-C++ is easy, and in this article we will walk through the steps required to do so. The original Dev Cpp is by Bloodshed Software.

Steps:

The process of setting up Dev-C++ is simple, but before you get started you will need to set up your Windows environment. If you use another operating system, you can still host Windows on your device by installing a virtual machine.

Step 1:

Download Dev-C++: The first step required is to download Dev-C++ and create an EDN (Embarcadero Developer Network) account. Once you have completed this, you can download the installer.  

Step 2:

Install Dev-C++:

After downloading the file you will need to install it. Open the file to begin the installation process. A set of windows will be shown to you when the installation process begins. You will start the process by selecting an installation language. 

After choosing the installation language you will be asked to read the license agreement and accept the terms.

Following that, a list of components/features will be displayed and you will be asked to choose the features you are interested in installing. You can hover over each one of them to read their description. I recommend selecting all components on the list but you should select language files depending on whether you are able to understand any language other than English or not. Selecting language files allows you to run the IDE in other languages. You can also choose to make Dev-C++ the default IDE used to open C++ and C files. If you are not interested in this option, deselect “Associate C and C++ files to Dev-C++.” Selecting icon files will grant you access to other icons that can be used in your program.     

You will also need to pick a default location for installation. I will advise you to change the default location to your desktop so that the folder is easily accessible.

Once you have completed those steps, the installation of Embarcadero Dev-C++ will begin. 

The next step will be to run the IDE after all components have been installed.

Dev-C++ gives you the option to run the IDE in your preferred language. The IDE supports 33 languages. You will be shown a few screens to aid you with your first time configuration.

You can select from a variety of themes, fonts, and colors. The themes include Blue Whale, Black Pearl, Slate Gray, Glossy, and Calypso among many others. You can also choose a color for the editor. I like black pearl combined with Obsidian, but one cool thing about this IDE is you have several options to select from. In case you still want to try out other themes after completing the installation process, you can select (Tools-> Environment Options -> Appearance) and (Tools -> Editor Options -> Colors) to change the environment theme and the editor theme respectively.

Once you have chosen your preferred options, you can start developing projects using the IDE. 

You can always modify your settings by visiting the welcome screen which has a few icons for changing the theme, font, and editor appearance.

Step 3:

Build A Project:

After installation is complete, you will be directed to the welcome page: 

To create a new project, select File -> New -> Project. 

You will be able to use Dev-C++ to create both console and Windows applications. To create a console application for instance, select “Console Application” after navigating to the new project tab. 

Once you have chosen the type of application you will be developing, you will be prompted to select a location to save your project in.

Ta-da! You have created your first Dev-C++ project. Congratulations and happy coding!

 

The post How To Set Up Dev-C++ For Your First Project first appeared on Learn C++.]]>
6200