Category Archives: .Net

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: Desktop C:\Documents and Settings\spilgrim\Desktop Programs C:\Documents … Continue reading

Posted in .Net, Curse of the Azure Bonds, Games, MacBook | Leave a comment

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: System.Runtime.InteropServices.SafeArrayTypeMismatchException The developer that had added the method stated it work, and pointed … 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: using System; using System.Drawing; using System.Drawing.Imaging; using System.Runtime.InteropServices; namespace Project { class … 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: Item item = player.itemsPtr; while (item … Continue reading

Posted in .Net, C# | Leave a comment

Microsoft UNPLUGGED – WPF & VS2008

I attended the November Unplugged WPF & VS2008 developer session on Tuesday. JD’s talk was well balanced, and covered the basics of what WPF is, how the UI and UX work.  He avoided only showing the shiny demo screens and … Continue reading

Posted in .Net | Leave a comment