The most useful .NET tool ever created. Ever. For all time.
Scott Hanselman has a great rundown of it.
You are at the archive for the programming category &rarr
Lerch.X10 Library updated (finally!)
I’ve uploaded some bug-fixed versions of my Lerch.X10 library. Thanks to “Muot” and Shaun for pointing out two AOI (”Areas of Improvement”) — to put it nicely.
The first fix was to remove the hard-coded “COM1″ port reference from the controller factory. That’s what happens when I leave in some “test” code. The […]
Internet Explorer 7 and Html Help “Bug”
A day or so ago I ran across a very frustrating bug that I feel compelled to post here to potentially save someone else the pain I went through.
Here’s the scenario:
Install one of our legacy Win32 applications
Install IE7
Open the help–we use HTML Help (.chm files)
Everything’s working great!
Accept updates from the server (we have a custom […]
Get key state from a console application
In Scott Hanselman’s recent Hanselminutes podcast with Chris Sells, he bemoaned the fact that in .NET you can’t just query the keyboard state to say “is this key pressed right now?” Chris answered that you can do it, but that he’d have to look it up to get the exact reference. I got […]
A few good links
I found a few good links from the blogosphere today:
A .NET RSS implementation. It may conform to the spec, but I don’t think it’s created to handle reading other people’s crappy (read: incorrect) RSS feeds well.
Partake in a WPF contest – Might be a good way to dive in and start learning the technology.
Jack Gudenkauf […]
IDesign
I’m sure that this is a well known resource to all by now, but in case someone out there doesn’t know, IDesign has some fantastic free downloads of code/design samples for C#/WCF.
To Read
I’m going to have to set aside some time to read through these articles. The singleton article has been a good reference for me already.
Static field initialization and the Singleton pattern
A co-worker just asked me why the following code (I’ve “samplized” it) ended up with an array of correct size, but with null values:
private static SingletonClass singleton = new SingletonClass();
private static readonly string FIRST_VALUE = “First Value”;
private static readonly string SECOND_VALUE = “Second Value”;
private static readonly string THIRD_VALUE = “Third Value”;
private ArrayList arrayList = new […]
Custom Marshaling - Part 2
In Part 1 I posted a sort of “set up” for today’s post. I presented a data structure (WAVEFORMATEX) that doesn’t fit into the “automatic” marshaling paradigm due to it’s dynamic size. The solution is to create a custom marshaling class that implements ICustomMarshaler and perform the marshaling from managed to native (and vice versa) […]
Custom Marshaling - Part 1
A while ago I posted about having a difficult time with complex marshaling. What I didn’t post, however, was any details about the solution–and now that the topic of custom marshaling has become the bane of a few co-worker’s existences, I figured I’d post some details.
Here’s the problem. You have a struct (for example, the […]

