Sunday, 22 February 2009

Midway point to Genting


Midway point to Genting
Originally uploaded by joelypolly
Photos from my trip to Malaysia last year

Tuesday, 17 February 2009

Vista and beyond programming issues

One of the first issues the developers will run in to when dealing with Vista is writing files to the file system. What use to work perfectly well in XP may have issues dues to the changes to the permissions of the application in Vista.
One example I recently ran into was write a file into the directory the application was installed in. In this case it was a folder under program files which in Vista has become more restricted. A simple workaround and in this case probably best practice is to use the Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) in C# or similar in VB etc. This will actually write the file out in the users local application data directory which also means you can have per user preferences easily.