Category: Source

Source code availability

ATL: Export from registry code snippet

The code snippet exports registry key (with values and subkeys) into .reg file format stream. The stream can be memory stream or any other IStream compatible implemetnation. See also: How To Add, Modify, or Delete Registry Subkeys and Values by Using a Registration Entries (.reg) File Visual C++.NET 2003 project: Download

Multidimensional VARIANT arrays

VARIANT arrays (SAFEARRAYs) are useful because they are OLE Automation compatible but multidimensional ones are used rather rarely. Unfortunately, the order of indexes is different depending on API. Somewhere it’s normal, somewhere it’s reverse and, as for me, I need to refresh this knowledge almost every time I come across a multidimensional VARIANT array. I…

Read the full article

ATL sorting templates

Active Template Library (ATL) contains a lot of useful classes but not for sorting. There are collections classes, including CAtlArray but it does not have sorting capabilities. I would like to share quite simple C++ templates that sort.