This is a dumping ground of software development topics that I've run across and found interesting (mainly .NET development). Many topics are covered more thoroughly in other places, and much of the information is gleaned from other places, and I'll try to credit those sources when possible.

Friday, October 20, 2006

What the...

Your mother might not find it interesting, but if you're reading this, then I bet you'll find http://thedailywtf.com quite enjoyable. It's good to hear of situations worse than your own. And if yours is worse, then submit it and we can all laugh with you.

C# .NET Click vs. DoubleClick

This is kind of silly, but slightly interesting nonetheless. I needed to create a backdoor into a WinForm app, so I chose a lucky Label to be the gatekeeper. Ten clicks on the Label control and then enter the secret password to get in. Sounds simple enough, but adding a handler for the Label's Click event didn't quite work. I'm a notorious fast clicker, and it turns out many of my clicks were actually interpretted as double clicks. So if I clicked slowly ten times, it would work. That's the long story, the short story is, I used the MouseDown event instead.

Friday, October 06, 2006

P/Invoke site

Platform invoke (a.k.a. P/Invoke or pinvoke) is the means of calling unmanaged code (typically in a DLL) from a .NET assembly. This allows you to leverage existing modules with new development. It's also useful for accessing the Win32 API when .NET doesn't quite provide the functionality you need (an all-too-common occurrence). A great site to help decipher the DllImport signature for Win32 function is http://www.pinvoke.net. It's a Wiki too, so you can add your experience to the site as you wish.

Followers