Tag archive

#C++

13 posts
Rants · 1 min

Netburner http weird errors - Daily WTF

Fixing a batch of undefined-reference linker errors in a Netburner HTTP project by adding an /http/index.html file.

#Code#C++#Web#Journal
Read post
Projects · 2 min

RGB LED POV Globe - Software

Software progress on the POV globe with a frame buffer class, bluetooth serial loading, and an ADXL345 accelerometer.

#LED#Arduino#Code#C++#Sensor#Maker Faire
Read post
Tips · 1 min

Get special folders with SHGetKnownFolderPath

A small Windows C++ sample that calls SHGetKnownFolderPath to find the right per-user spots for app data and logs under UAC.

#Tutorial#Code#C++#C
Read post
Tips · 1 min

Convert HEX string to BYTE array, bug.

A C++ ConvertHexToBytes function posted as a find-the-bug puzzle using strtok_s and sscanf_s.

#Code#C++#Tutorial
Read post
Development · 1 min

winnt.h(5545) : error C2146: syntax error : missing ; before identifier ContextRecord

Fix for the winnt.h C2146 ContextRecord compile error: include windows.h before the offending header.

#Code#C++#Tutorial
Read post
Development · 1 min

How to find the text column header of a CListCtrl in MFC

Short MFC helper that pulls the text of a CListCtrl column header by index using the underlying CHeaderCtrl.

#C++#Code#Tutorial
Read post
Development · 1 min

Add/Remove operation is impossible, the code element Cxxx is read only

Fix for the Visual Studio error when adding a control event handler: delete the .ncb and .suo files, then rebuild.

#Tutorial#Code#C++
Read post
Development · 1 min

Dump a CListCtrl

C++ snippet that walks an MFC CListCtrl and writes every row and column out to a CSV file.

#Code#C++#Tutorial
Read post
Development · 1 min

How to create a menu and submenu on right click in MFC

MFC snippet that builds a right-click context menu with a nested submenu using CMenu and TrackPopupMenu.

#C++#Code#Tutorial
Read post
Tips · 1 min

C++ name mangling hell

Why exported C++ functions show up with mangled names like FirstGetBuf@US&NP and how extern "C" fixes GetProcAddress.

#Code#C++#Tutorial
Read post
Tips · 1 min

How to make a CMinMaxAvg class

A small C++ CMinMaxAvg class that tracks count, total, min, max, and average for a stream of ints.

#C++#Code#Tutorial
Read post
Development · 1 min

VS6 SP6

A mirror of the Visual Studio 6 Service Pack 6 installer for anyone still stuck on VS6.

#Code#Bookmark#C++
Read post
Tips · 1 min

Disable and Enable MFC controls by name

Snippets for enabling, hiding, and moving MFC dialog controls by ID using GetDlgItem.

#C++#Tutorial#Code
Read post