Archive for the ‘programming’ Category

Custom Marshaling – Part 2

Posted on July 6th, 2006 by aaron
Filed under programming | 4 Comments

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 on July 4th, 2006 by aaron
Filed under programming | Comments Off

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, [...]

When in Doubt, Reflect.

Posted on June 18th, 2006 by aaron
Filed under powershell, programming | 2 Comments

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

Complex marshalling

Posted on March 14th, 2006 by aaron
Filed under programming | Comments Off

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

Helpful summary of string formatting (using C#)

Posted on March 7th, 2006 by aaron
Filed under programming, tips and tricks | Comments Off

http://blog.stevex.net/index.php/string-formatting-in-csharp/ Helpful!

Lerch.X10 Library

Posted on November 17th, 2005 by aaron
Filed under programming | 4 Comments

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

X10-ified, AGAIN.

Posted on November 16th, 2005 by aaron
Filed under programming | Comments Off

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

Factoring and Refactoring

Posted on October 2nd, 2005 by aaron
Filed under programming | Comments Off

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

X10-ified

Posted on September 26th, 2005 by aaron
Filed under interactive intelligence, programming | 8 Comments

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

Win32 API and .NET

Posted on December 18th, 2004 by aaron
Filed under programming, windows | Comments Off

Straight-up mapping between the Win32 API and the .NET Framework: MSDN Win32 to .NET Framework API Map – and – Excellent pointers for calling unmanaged API’s, and pointing out managed equivalents, if they exist: pinvoke.net