C++ Builder

Learn How To Use Binary Literals In Modern C++

C++14 brings us fewer but useful features to modern C++ than the standards preceding it. The creator of C++, Bjarne Stroustrup says that improvements in C++14 were deliberately lower in quantity compared to C++11. One of the small but useful features is the introduction of “Binary Literals”. C++14 comes with the Binary Literals feature, and in […]

Read More

Learn To Use Digit Separators In Modern C++

In the history of modern C++, the C++14 standard brings us some very useful features. C++14 comes with the digit seperators feature. In C++14 and above, we can use the digit separator  to separate integer numbers. In this post, we explain, how to use digit separators in examples, How can I use use digit separators in modern […]

Read More

Learn The Useful Integer Literals In Modern C++

A programming language consists of a lot of expressions in our source code. One of elements of expressions in C++ are literals. A more specific type of literal is Integer Literals. Integer literals are primary expressions that allow values of integer types (i.e., decimal, octal, hexadecimal) to be used in expressions directly. They are further […]

Read More

Why Was The Gets Function Removed In C++14?

Modern C++ has a lot of useful functions coming from C. One of them was the gets() function that we use to get string inputs and that we were able to use in C++11 or earlier. In C++14, the gets function was removed, while fgets or other input functions remain there. If you have older […]

Read More

Make Member Function const and Global Function Static in Visual Studio

Make Member Function const and Global Function Static in Visual Studio Mryam Girmay September 14th, 20230 1 We are delighted to announce that Visual Studio Preview now includes the “Make Member Function Const” and “Make Global Function Static” features. To check out these features, make sure you update to the latest version of Visual Studio Preview.  […]

Read More

5 Important Posts That Professional C++ Developers Should Read

Hello C++ developers, this week we have five more professional and intermediate-level topics in modern C++. Modern C++ has many features to aid multi-thread programming that allow your applications to be faster and more responsive. Since the C++11 standard, the Concurrency Support Library includes built-in support for threads (std::thread) with atomic operations (std::atomic). In the first two […]

Read More

Integrating C++ header units into Office using MSVC (2/n)

Integrating C++ header units into Office using MSVC (2/n) Cameron DaCamara Zachary Henkel September 11th, 20233 0 In this follow-up blog, we will explore progress made towards getting header units working in the Office codebase. Overview Overview: Where we were, where we’re going. Old Code, Old Problems: ‘fun’ code issues found while scaling out. Rethinking […]

Read More

Create and use Static Library (.Lib) and Dynamic DLLs in C++ Builder

Introduction: This post describes how to create and use Static Library (.Lib) and Dynamic (Run-Time) DLLs in C++ Builder. A library is a collection of pre-compiled code that can be re-used by programs. There are 2 types of libraries: static library and dynamic library. Static Library (.lib) vs Dynamic Library (.dll) A static library (.LIB […]

Read More

How To Allow Atomics Use In C++ Signal Handlers

C++11 allows the use of atomics in signal handlers, and with the advent of C++ 17 the signal handler feature was again improved. The std::atomic_flag is an atomic boolean type that is guaranteed to be lock-free and can be used in signal handlers. Moreover, the  header in C++ has an integer type std::sig_atomic_t that can be accessed as an atomic […]

Read More