C++ Performance, should I care?

C++ std:sort is cool if you use it right.

Advertisements

Windows 10 Creators Update – Network Issues (again)

So, it's been a while since this update came out and I have only just had the pleasure (?) of getting it installed on my machine.  In fact this is the second time it has been installed on the machine because the first time caused some issues that forced me to revert it back to … Continue reading Windows 10 Creators Update – Network Issues (again)

Code doesn’t have to be confusing …

Just a quick post today on some code I found that was a little confusing and a little annoying, here is the function. //---------------------------------------------------------------------------- // SetFontName() -  // Desc: Changes the font face used for printing // params: The new face name IE Courier  // Returns: he old font face //---------------------------------------------------------------------------- LPCSTR CPrintClass::SetFontName(LPCSTR TheFontName) {   static char buffer[40];  if (TheFontName != NULL) {     m_PrintDescripter.FontName = TheFontName;   }   return buffer; } Looks legit, right, well let's delve into it.  The name of the function indicates that it will set … Continue reading Code doesn’t have to be confusing …