You are at the archive for the programming category &rarr


Reflector 5.0 Released

Posted February 20th @ 7:17 am by aaron

The most useful .NET tool ever created. Ever. For all time.
Scott Hanselman has a great rundown of it.

Lerch.X10 Library updated (finally!)

Posted November 29th @ 12:43 am by aaron

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”

Posted October 28th @ 12:06 pm by aaron

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

Posted October 10th @ 2:34 am by aaron

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

Posted August 31st @ 2:26 am by aaron

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

Posted August 22nd @ 4:32 pm by aaron

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

Posted July 11th @ 1:25 pm by aaron

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

Posted July 10th @ 6:28 pm by aaron

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

Posted July 6th @ 12:49 am by aaron

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

Posted July 4th @ 3:48 pm by aaron

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 […]

« Previous EntriesNext Entries »

Options:

Size

Colors