Use Modern C++ to Access the Windows Registry

Mon, 01 May 2017 10:00:00 GMT

Access the Windows registry using modern C++. Learn how the complex RegGetValue C-interface API is wrapped in higher-level convenient C++ code to easily read values of different types from the registry. Several C++ techniques discussed in this article for the Registry API can be applied to other Win32 C APIs, as well.

Read article

Simplify Safe Array Programming in C++ with CComSafeArray

Wed, 01 Mar 2017 10:00:00 GMT

This article shows C++ programming techniques involved in producing arrays of data using the SAFEARRAY data structure and convenient ATL helper classes like CComSafeArray.

Read article

Unicode Encoding Conversions with STL Strings and Win32 APIs

Thu, 01 Sep 2016 10:00:00 GMT

Giovanni Dicanio presents C++ techniques for converting Unicode text between UTF-8 and UTF-16, using the Win32 APIs MultiByteToWideChar and WideCharToMultiByte. These Win32 C-interface APIs are wrapped in modern C++ code, using STL string classes to store Unicode text, and exceptions to signal error conditions.

Read article

Using STL Strings at Win32 API Boundaries

Wed, 01 Jul 2015 10:00:00 GMT

Giovanni Dicanio presents C++ programming techniques for using STL string classes at the Win32 API C-interface boundaries.

Read article