Dumping CObject based array!

Ever felt the need to dump an MFC array content to a debugger, it’s just so easy! Use AfxDump or afxDump! Here is an e.g. [sourcecode language=’cpp’]CArray IntArray; AfxDump( &IntArray ); // Or #ifdef _DEBUG afxDump
Continue reading…

 

GetIconInfo caveat!

I had heavy resource leaks in my resource digger application with my resource leak detector showing ever increasing amount of bitmap handles! As a hint to me this was happening in my icon display function, but looking up the code I found nothing causing a leak. Analyzing closely I found that bitmap count was increasing […]
Continue reading…