Converted to VS2010