Category: You’re Doing It Wrong
-
How to Sell Your Arcade Game
Correctly Manage Your Expectations Before you try to Sell your Arcade Game Something I see far too often are outlandish prices when uninformed people try to sell a game. I usually see this with someone that originally overpaid (badly) and is trying to make their money back or thinks all games magically appreciate in value…
-
Outlook Taking Hours to Download Email
JIC it helps anyone else out there. For no apparent reason, Outlook 2010 started taking hours to download emails that usually came down in minutes. And when I say hours, I mean 3-5 hours! The app would remain responsive for the most part, but would consume 100% of a CPU/core. It would download a number…
-
CString misuse #2
Here is another one: ///////////////////// LPCTSTR cpString = _T( “This was some string message…” ); // // Later On In Code… // CString str( cpString ); char cChar = str.GetAt( 0 ); ///////////////////// If you write code like this, stop now and back slowly away from the keyboard – You’re Doing It Wrong! The developer…
-
CString misuse #1
This is the first of many examples of ways to misuse and/or abuse MFC’s CString class. While this example (and following ones) are specific to MFC, they likely apply to all string classes (mutable or not). Here is the offending code: ///////////////////// CString str( “First Part Of Message\n” ); str = str + “Second Part…
-
You’re Doing it Wrong!
Having been inspired by the amount of photos on the internet showing various forms of spectacular failures (http://www.doingitwrong.com), ranging from failed bunny-hops to the most graceful faceplants, I thought that a coding-equivlent of it might be worth trying out. To that end, this section will cover little snippets of “wrong” code found in the wild.…