Welcome to MSDN Blogs Sign in | Join | Help

March 2008 - Posts

Old versions of Microsoft's C++ compiler supplied a form of the new keyword which would return NULL if the memory allocation failed (to mimic the behavior of malloc ). The newer (more C++ compliant) versions of the compiler will instead throw a std::bad_alloc Read More...
This last weekend I was writing a COM object for submitting/editing entries into a SQL Server 2005 database we have for collecting project metrics. To do so, I was using the templated OLE DB functions: CCommand < CDynamicAccessor >, and things were Read More...
So if you get the " Zune Car Pack ", then it comes with a cool little floor mat, which can be used as a nice no-slip pad to place your Zune while driving. Unfortunately for me, there wasn't a good place to put the mat in my vehicle. Not wanting to waste Read More...
Microsoft's C/C++ compiler supports the /Gh and /GH switches, these options allow the developer to inject a function call into the beginning and exit of every procedure being compiled. Aside from enabling some cool logging/traceability scenarios, you Read More...
If a fellow employee looks me up in the address book , they will be informed that my title is "EMULATION NINJA". Regardless to say, this continues to evoke the common "what's with your title?” questions, especially since the original lore around this Read More...
A few months ago I ran across some test code which was using GetTickCount () + timeGetTime () as the seed input to a random number generator. Unfortunately this code was bad for two reasons. First, the systems that the test code was running on would be Read More...
 
Page view tracker