Posted on July 10th, 2006 by aaron
Filed under programming |
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”; [...]
Posted on July 6th, 2006 by aaron
Filed under programming |
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) [...]
Posted on July 4th, 2006 by aaron
Filed under programming |
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, [...]
Posted on June 18th, 2006 by aaron
Filed under powershell, programming |
In the ongoing saga of my Newsgator Powershell provider (well, ongoing to me if not to you), I think there’s finally been a break in the case. As are so many other things, it’s all thanks to Lutz Roeder’s Reflector. I don’t think I can say enough about the usefulness of this tool. In the [...]
Posted on March 14th, 2006 by aaron
Filed under programming |
http://blogs.msdn.com/jaredpar/archive/2005/07/11/437584.aspx A very helpful explanation of marshalling, as well as “more complex than simple” marshalling. I had a situation where I had to marshal a struct that contained a dynamic array of other structs. I wasn’t able to find anything on the web about marshalling dynamic arrays, other than this (and even then, this didn’t [...]
Posted on March 7th, 2006 by aaron
Filed under programming, tips and tricks |
http://blog.stevex.net/index.php/string-formatting-in-csharp/ Helpful!
Posted on November 17th, 2005 by aaron
Filed under programming |
UPDATE: With my new website comes a place to host files! (they were previously hosted on a free file hosting service site–it stank) Download the Lerch.X10 library for v1.1 of the .NET Framework (built with VS.NET 2003) Download the Lerch.X10 library for v2.0 of the .NET Framework (built with VS.NET 2005) Download a Command Prompt [...]
Posted on November 16th, 2005 by aaron
Filed under programming |
I finally made the time and finished refactoring the X10 CM17A code! It works much better now, and the design allows for future extensions for other controllers with minimal impact (ahh, the factory pattern). I also implemented it in .NET 2.0 to take advantage of the new SerialPort class, but I will be implementing it [...]
Posted on October 2nd, 2005 by aaron
Filed under programming |
I posted some of my X10 code recently, but I’ve taken it down (for now). I have a lot of refactoring to do! I’m not very satisfied with my code (there is a bug or two I have yet to uncover) and I’m inspired to transform it into a library that would be easier to [...]
Posted on September 26th, 2005 by aaron
Filed under interactive intelligence, programming |
I work for Interactive Intelligence. It’s a great company, with very cool technology. Our IP-Telephony software means that all of my phone communications (and so much more) are managed via our client software that runs on my computer. One feature of our client software is the ability to have plug-ins that can receive and respond [...]