Category Archives: C#

Why my file operations fail on the Mac

My first thought for why things fails is the the Environment.SpecialFolder don’t map, and thus I found this page talking about it So I ran the code on my Windows XP box and got: and on my MacBook I get … Continue reading

Posted in .Net, C#, Curse of the Azure Bonds, Games, MacBook | Comments Off

SafeArrayTypeMismatchException

We extended our legacy C++ DCOM application last week, and when the developer wrote the C#.Net end to call the new method, we were getting the error: The developer that had added the method stated it work, and pointed to … Continue reading

Posted in .Net, C#, C++, Programming | 2 Comments

Creating Palette based GIFs

A question was asked on the mailing list (ages ago) about creating 8-bit GIF files.  I proved this code for simple palette based GIFs, so here it is: I would change fillrect, to seperate out the locking, and Marshal calls, … Continue reading

Posted in .Net, C#, Programming | Leave a comment

Loving the Visual Studio 2008 compiler

I have been finding lambda and extension methods really helpful in my game port. Blobs of C styled single linked list code, when changed to generic lists boil down to one line. like this: to this: much nicer.

Posted in .Net, C# | Leave a comment

CodeCamp: Delegates

Wow, I’m sitting here in a C# 3.0 – A Whirlwind Tour talk, and the group has stalled on Delegates, a .Net 1.0 feature. Anonymous Delegates lost more people, Lambda functions are now messing with peoples heads…. Eeek, this is … Continue reading

Posted in C#, Code Camp | Leave a comment