Click here to Skip to main content
15,884,237 members
Everything / Programming Languages / C++

C++

C++

Great Reads

by Dr. WPF
.NET 3.5 SP1 is here! It's time to break out your DirectX skills. This article provides the information necessary to get started using a new DirectX interop feature in WPF called D3DImage.
by Hatem Mostafa
Artificial Neural Network C++ class with two use cases: Counter and Handwritten Digits recognition
by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
by Hans Dietrich
XColorSpectrumCtrl displays a color spectrum that allows user selection, and provides APIs for color based on RGB and HSL color models.

Latest Articles

by Hatem Mostafa
Artificial Neural Network C++ class with two use cases: Counter and Handwritten Digits recognition
by Michael Chourdakis
An introduction to machine learning with working C++ code that trains a linear regression model.
by PJ Arends
Trace your function calls to the Output window.
by Ștefan-Mihai MOGA
Task Manager shows you the programs, processes, and services that are currently running on your computer. You can use Task Manager to monitor your computer’s performance or to close a program that is not responding.

All Articles

Sort by Updated

C++ 

U 9 Apr 2024 by PJ Arends
Trace your function calls to the Output window.
4 Apr 2024 by Mohammed Faci
How to leverage ChatGPT to Build an Automation Framework using the Page Object Model
30 Mar 2024 by Shao Voon Wong
InsertionSort outperforms QuickSort on almost In-Order Array
27 Mar 2024 by Yochai Timmer
A way to avoid JNI's reflection oriented programming. Wrapping Java with C++
1 Mar 2024 by Member 10912276
How to control game elements based on predefined conditions
20 Feb 2024 by Ștefan-Mihai MOGA
A look at the URLDownloadToFile function and architecture of IntelliLink
18 Feb 2024 by Shao Voon Wong
Make a console program not to show the console screen
18 Feb 2024 by Shao Voon Wong
Two C++ features win over C equivalents in performance
6 Feb 2024 by Shao Voon Wong
Solving Fizz Buzz in C# and C++ using six different approaches
29 Jan 2024 by Ștefan-Mihai MOGA
Implementation of Producer-Consumer problem in C++ and Python
26 Jan 2024 by Member 16179004
Capture Enter key in edit control with no dialog box and no subclass.
20 Dec 2023 by Daniel Ramnath
C++, Win32 API - Injecting DLL in a process
13 Dec 2023 by FenrisH
Demo of how C++ and C# interoperate
3 Oct 2023 by honey the codewitch
Presenting a simple to create understandable and maintainable builds for projects with dependencies
20 Sep 2023 by Javad Taheri (drjackool)
Show or hide, reorder, save and restore list view column headers
20 Aug 2023 by Ștefan-Mihai MOGA
How to download files from an HTTP server.
20 Aug 2023 by Ștefan-Mihai MOGA
How to save a message to an MSG Compound file.
14 Aug 2023 by Daniel Ramnath
C++ OpenSSL 3.1 Attack AES-CBC using Padding Oracle Attack, and Timing Attack
24 May 2023 by Mirzakhmet Syzdykov
Network programming in C++
24 May 2023 by Mirzakhmet Syzdykov
Traveling Salesman Problem using Ant Colony Optimization
8 May 2023 by Sam@112
Real-time push notifications for network connected distributed system
22 Apr 2023 by Ben McNamara
Container classes much faster than STL.
7 Apr 2023 by Mostafa Hashemi _
Machine Learning & coefficients using MLPack
7 Apr 2023 by Mostafa Hashemi _
Mean absolute error calculation in C++
17 Mar 2023 by Claudio Farassino
A small and simple C++ GroupBy with the same syntax and use of DotNet GroupBy
11 Mar 2023 by honey the codewitch
Initializing the ESP LCD Panel API is a chore. Here's some boilerplate code to make it easier.
7 Feb 2023 by Ben McNamara
I++ presents one option for the direction of Win32.
2 Jan 2023 by John M. Dlugosz
Short list of things to watch out for when using C++
27 Dec 2022 by Bruno van Dooren
What to do when you want to use the current thread handle
17 Dec 2022 by Steffen Ploetz
High-end quality in text rendering concerns not only the characters, but also the character spaces - and here FreeType is not quite up to date anymore: The kerning used by FreeType is not always available (especially with newer fonts).
15 Dec 2022 by vblover Programmer
Create a resource-only DLL
8 Dec 2022 by Alexey Shtykov
Activate a particular document window in MDI application via MFC/C++
12 Nov 2022 by ls6777
Task monitor for multi-threaded embedded systems
3 Nov 2022 by Daniel Ramnath
Reverse proxy developed using BOOST 1.75 asynchronous ASIO calls
31 Oct 2022 by flyhigh
By implementing a UI library and exporting its necessary components to lua script, we can create a beautiful UI and implement relevant logic in Lua script completely.
24 Oct 2022 by Tiago Cavalcante Trindade
How to use WSL, GUI on WSL and how to compile for Linux on Windows
10 Oct 2022 by Mehul Donga
Handle managed (C#) event in managed (C++/CLI)
7 Sep 2022 by Bruno van Dooren
Symantec can cause valid applications to crash and be gone without a trace
24 Aug 2022 by honey the codewitch
std::chrono doesn't work on the Teensy? Oh no! Here's how to fix it.
10 Aug 2022 by Mukit, Ataul
Using the filesystem as a repository for a circular buffer for achieving persistence of data
21 Jul 2022 by honey the codewitch
Easily blank the screen after a timeout period
14 Jul 2022 by captnmac
Find the multiplicative inverse mod-256 with no division operations
1 Jul 2022 by Member 15078716
Unicode / Creating, Writing, Appending / a text (*.txt) file - how to do it
22 Jun 2022 by Stephane Capo
C++ optimization for map using string key among others
15 Jun 2022 by Ayush Swiss
C++, WebView2, Edge Browser, Edge in MFC application
11 Jun 2022 by khazaad
An overview of lack of strong typing in higher order functions in modern C++ and possible solution to this problem
25 May 2022 by spore123
This is a fast multi-threaded quick-sort based algorithm
18 May 2022 by Southmountain
How to install and register .OCX components for legacy application
15 May 2022 by honey the codewitch
Detect when your SD card gets removed and recover gracefully, even without a card change pin.
25 Apr 2022 by honey the codewitch
Use batching to increase performance during complex rendering operations.
21 Mar 2022 by Roger65
How to type text into a static control, change the font used and then save it into a bitmap
19 Feb 2022 by Asif Bahrainwala
A simple C++ program to generate RSA key pair
15 Feb 2022 by Michael Sydney Balloni
Use vectormap when you want the fast lookup of unordered_map, and the order-added iteration of vector
18 Dec 2021 by Kai Schtrom
Win32_NetworkAdapterConfiguration WMI class in plain C and C++
21 Nov 2021 by REALTBU
Easy to use class which supports displaying icons on button controls
7 Oct 2021 by Mircea Neacsu
Source code organization suggestion
9 Sep 2021 by _Flaviu
A simple way to convert an office document to PDF
3 Aug 2021 by BernardIE5317
On certain occasions, Visual Studio does not indent as intended so here is an awk program which does the trick.
23 Jun 2021 by Southmountain
How to smoothly build Diligent Engine on Windows 10 with Visual Studio 2019
8 Jun 2021 by Derell Licht
Find logon time on Windows 10
3 Jun 2021 by IgorRadionyuk
Automatic mapping some key to the fabric function, and its usage
2 Jun 2021 by Steffen Ploetz
Why replacing std::vector with std::set sped up my UndoRedoAction class by about 20x
25 May 2021 by BernardIE5317
A simple struct is presented which permits the automatic display to the console of function entry and all exits
21 May 2021 by rev78
Simply bypass the 255 columns in MFC CRecordset
18 May 2021 by honey the codewitch
Easily shift bits in memory of arbitrary length, declare integer sizes programmatically, endian conversion, and more
10 May 2021 by Steffen Ploetz
Check whether ReactOS is able to run OpenGL, determine a convincing IDE and get started with the OpenGL on ReactOS.
1 May 2021 by Greg Utas
A function may only return from its last line!
16 Apr 2021 by Steffen Ploetz
Basic light source approaches and related material properties handling for OpenGL
26 Mar 2021 by Southmountain
Some quick configurations to get MFC support for console application
9 Mar 2021 by Steffen Ploetz
Box, cylinder, cone and sphere construction for OpenGL with texture and light effects
4 Mar 2021 by Southmountain
glaux.h header file & glaux.lib can be replaced by freeglut.h & freeglut.lib
27 Feb 2021 by Southmountain
This post sheds some light on all WGL functions(wiggle functions) in OpenGL extension for Microsoft Windows system
21 Feb 2021 by Steffen Ploetz
My best practice approach to change the image of a toolbar button
1 Feb 2021 by jfriedman
When you need a janky [unsafe] way to generate communitive hash codes
18 Jan 2021 by Shao Voon Wong
Heterogeneous lookup with char* and string_view without temporary string instantiation in ordered and unordered containers
29 Dec 2020 by IgorRadionyuk
An iterator over parametric function, which is a well known mathematical abstraction: Parametric Function. It maps interval of real numbers[start, stop] to some values in the range of function.
27 Dec 2020 by Steffen Ploetz
Use STL and C++14 to return a dynamically created string from a function/method, that is automatically garbage collected.
27 Dec 2020 by Steffen Ploetz
Step-by-step instructions and source code snippets for inserting a bitmap (or a section of it) into an icon image.
26 Dec 2020 by IgorRadionyuk
Proposal for implementation diapasons of values or it ranges
18 Dec 2020 by ferdo
How to compile MFC sources with VS 2019 (for ARM64 too)
6 Dec 2020 by honey the codewitch
A rundown of some common tricks and pitfalls when working with SD readers for IoT gadgets
4 Dec 2020 by Member 13376231
An overview of a tricky binary collision example when there are multiple definitions of symbols in linked binaries
4 Dec 2020 by Eddie Nambulus
CheckBox as an item in CComboBox
22 Nov 2020 by honey the codewitch
This is a very specialized tool that generates source code to upload files into SPIFFS on an ESP32
2 Nov 2020 by George Shagov
An idea how to improve the performance of binary search algorithm using three boolean logic
1 Nov 2020 by Rick York
A Handy Memory Allocation Tracking Macro and Header for Visual Studio C++ Code
25 Oct 2020 by Tomaž Štih
Simple trick to implement csharpish properties in modern C++
5 Oct 2020 by zcrj
Reassembling the left-hand button mechanism
20 Sep 2020 by Shao Voon Wong
How to disable MFC SDI/MDI Submenu
20 Sep 2020 by Shao Voon Wong
Finding out whether it is faster to retrieve data by reference parameter or returning a reference in C++
19 Sep 2020 by Daniel Petrovic
In this tip, I want to represent a quick lightweight possibility (one of many) for parsing command line arguments on the fly using C++17.
19 Aug 2020 by Tiago Cavalcante Trindade
How to put color in Python, C, C++, C#, Java and batch on the Windows console
11 Aug 2020 by Bob Van Tuyl
How to set landscape mode in MFC app
10 Aug 2020 by Damian Reloaded
List comprehensions in C++
23 Jun 2020 by Greg Utas
Replacing its erase() function
19 Jun 2020 by Mircea Neacsu
How to efficiently evaluate a polynomial in C++
10 Jun 2020 by fernando amatulli
Polynomial interpolation algorithm from 1 to 9 degree that allow forcing constant term to 0
8 Jun 2020 by Manuel Campos
A modeless dialog that allows magnification of a section of a display screen
13 May 2020 by Apprieu (Apprieu)
How to generate a serial key with Crypto API MFC
4 May 2020 by BernardIE5317
Method utilizing variadic arguments and macros