Variable value is always’s zero, no matter what you do!

Recently a friend of mine (sitting just behind me) had a strange problem. I wrote an inline function which was like… void SetBlah( const bool IsBlah ) { m_IsBlah = IsBlah; } Now he was using this function since we work for the same project! So he had a value 1 for IsBlah when calling […]
Continue reading…

 

Seeing array values in the debugger as a list!

VC debuggger has a nice feature to display array values. It works with any contiguous data, for e.g. vector, CArray, native type arrays etc. Follow these steps… IntVector is an array of integers Start quick watch by pressing Shift + F9 with IntVector object selected Select _First(encircled in red) and press Add watch(encircled in red) […]
Continue reading…