Facepalm

For those times when you get bugs.

Thursday, November 12, 2009

DialogBox + Accelerators

›
Can't be done. Sorry. You have to write the modal loop yourself. With the help of The Old New Thing (Yes, its not thread safe. Who even ...
Monday, November 9, 2009

Generic Output Functions and Inlining

›
Today at work I encountered the following warning in release mode: warning C4789: destination of memory copy is too small The errant line wa...
Monday, October 26, 2009

Opening Explorer And Selecting A File

›
Can be done one of two ways. ShellExecute(hwnd, 0, "explorer.exe", "/select,pathandfilename", NULL, SW_SHOWNORMAL); Or: ...
Saturday, October 10, 2009

Sign Extention For Fun And Profit

›
An unexpected bug may come from code that looks like the following: S32 My32BitInt = somenumber; U32 Other32BitInt = anothernumber; U64 MyLa...
Wednesday, October 7, 2009

Clamping isn't enough

›
Sometimes you might think that its enough to clamp an uninitialized variable to a known range, for instance [0, 1]. You might then think tha...
Wednesday, September 30, 2009

TreeViews and Check Boxes

›
Important side note when trying to insert checked items in to a newly created Win32 TreeView. From the docs: If you want to use this style, ...
Friday, February 27, 2009

The Beginning Of The End

›
For God knows how long I've wanted a place to record interesting bugs/thoughts I've come across while coding. Well, here goes nothin...
Home
View web version

Contributors

  • BrendanWalker
  • soal
Powered by Blogger.