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…
Posts tagged with 'CArray'
Forward declaring a template class!
This is how we forward declare a template class… [sourcecode language=’cpp’]// Forward declare CArray template class template< class TYPE, class ARG_TYPE> class CArray; class SomeClass { public: // No need for “afxtempl.h” CArray* m_pFloatArray; };[/sourcecode]
Continue reading…