Media Players are good to play sounds or videos. You can easily create your own media player in C++ Builder. MediaPlayer (TMediaPlayer) component is very good to develop your media player application. You can use aTMediaPlayercomponent for easy access to media files.MediaPlayer (TMediaPlayer)is used with TMediaPlayerControl. Set MediaPlayer to link aTMediaPlayerto…
Easily Learn To Find Prime Numbers In Modern C++
January 22, 2021
Prime numbers are interesting area to research. A prime number, it is also called prime shortly , is a natural number (a positive integer) greater than 1 that is not a product of two smaller natural numbers. If a number is not prime then it is called as a composed…
Quickly Learn How To Use Canvas Drawing In C++ On Windows
January 11, 2021
In C++ Builder, it is easy to draw images on Bitmaps by using Canvas property and methods to draw, Canvas can be used on both VCL and FMX applications. Canvas provides an abstract drawing space for objects that must render their own images. TCanvas provides properties…
Quickly Learn About Basic Windows C++ Components (QuickLook Part 4)
December 31, 2020
TrackBar
Trackbar is a slider on the form that allows users to get numeric values by dragging the track. A track bar can set integer values on a continuous range. It is useful for adjusting properties like color, volume and brightness. The user moves the slide indicator by dragging it to a particular location or clicking within the bar.
We can set its Oriantaion to Horizantal or Vertial. We…
This post about listing String and displaying methods as fast as possible in Modern C++, in C++ Builder FireMonkey projects. In general if you have many String additions to you component, you must use BeginUpdate() and EndUpdate() methods of that Class member to do these…
The Main Function of a C++ Program
December 27, 2020
The source code written in C++ must be compiled (i.e. translated to the machine code) by one or another compiler such as Embarcadero RAD Studio C++ compilers before in can be runned. In general, there are two types of the resulting machine code: library and main executable…
Traversing sequences without writing explicit loops
December 26, 2020
The posts General Loop Statements in Modern C++ and Range-for-statement in modern C++ cover ways to write explicit loops. But explicit loops can be tedious to write and, what is more important, – harder to read, because the resulting code requires to spend the extra time by others in order to understand what is going on in the explicit loop. As alternative, the C++ standard library provides…
How To Import FANN Library For C++ Builder Windows Projects
December 26, 2020
This article is about to help you on implementing an Artificial Neural Network by using FANN Library developed by Steffen Nissen. It supportsmore than 20+ programming languages (http://leenissen.dk/fann/wp/language-bindings/) including Delphi and C++ Builder. You can…
General Loop Statements in Modern C++
December 25, 2020
Each loop statement in C++ has its loop body which is executed repeatedly until the loop condition expression that yields a loop condition becomes false (otherwise, the loop will run “forever”). The statement continue can be used to interrupt the current…
Switch Statement in Modern C++
December 20, 2020
The C++ language provides the switch statement which can be used to replace the set of if statements (see If Statements in Modern C++). First of all, let’s define the enum type Traffic_light_color as follows:
enum class Traffic_light_color { red, yellow, green };
Then, the following snippet:
// Snippet 1
#include <stdexcept>
#include <string_view>
std::string_view…