Monthly Archives: February 2012

On AFX_MODULE_STATE, or – Avoiding afxCurrentInstanceHandle Asserts, Part 1

All too often I see one of these asserts fire: These are coded in afxwin1.inl, and are part of the MFC high level accessors: If these asserts fire for you too, there’s a good chance you’re missing some afx module … Continue reading

Posted in MFC | Leave a comment

RGB vs. BGR in Bitmaps

What is the channel order in bitmap pixels? Does the R channel occupy the least- or most- significant byte? Ah, the answer to this simple question held me back for nearly a day while debugging some image processing code. MSDN, … Continue reading

Posted in Win32 | Tagged , | 2 Comments