Sometimes it is needed to understand compilation platform during compile or acting and designing UI elements in accordance with the platform. In this post we would like to give some examples to check some options in application codes. The C++ compiler predefines certain global identifiers, known as manifest constants. Most global identifiers begin and end with __ (two underscores) in C++.
If you are looking to a way to reliably determine whether C++ code is being compiled in 32 bits or 64 bits there is way to check in C++ code.
For a cross platform compilation (cross compiler environments like FireMonkey framework in C++ Builder) there is no singleโฆ
Easily Learn To Use Merge Sort Algorithm In C++ On Windows
February 26, 2021
Merge Sort Algorithm, in another efficient sorting algorithm that divides the input array into two parts and it calls itself recursively for the two parts. Then merges these two sorted parts.It is a Divide and Conquer algorithm. Merge function used to merge two partsโฆ
In C++, STL Standard Template Library has many algorithms for some operations like searching, counting, and manipulation of ranges and their elements. C++17 has a new feature that you can sort vectors with Parallel STL Algorithm. In C++ Builder, Vectors can be used and sorted by Parallel STL Algorithm as below.
#include <vcl.h>
#include <stdio.h>
#include <vector>
#includeโฆ
Tutorial: Easily Learn To Use optional In Modern C++ On Windows
February 11, 2021
Optional definition (std::optional) manages anoptionalcontained value, i.e. a value that may or may not be present. This class templatecomes with C++17 standard, it is used with CLANG and other C++ compilers which has this standard. A common use caseโฆ
C++ Builder is easy to operate on files on Windows. There are many methods to operate on files. Some of these methods are explained well in Windows File Operations in Modern C++. In this post we create a snippet to search and count a text from a text file.
unsigned intโฆ
Learn To Use Powerful Lambda Expressions In C++ On Windows
February 5, 2021
Lambda Expressionsare an expression that returns a function object, it comes with C++11 standards and used C++14, C++17, C++20 standards, it is well explainedhere. Lambda expressions are widely used in C++, C#, Groovy, Java, Python, Ruby languages too.
The Greek letter Lambda (ฮป) refers to an anonymous function, it means chosen since it is equated with something nameless andโฆ
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โฆ
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โฆ
Colors In Modern C++ For Windows Development
December 22, 2020
Colors are very important in application development on both displaying and editing/analyzing operations. All images (pictures, photos, drawings, icons, emojis, all UI elements …) are consist of pixels in colors. You just need to change the colors of a pixel to draw a beautiful drawing or to edit a photo. You can set your drawings, bitmaps, images, you can create colorful BMP, JPG, PNGโฆ