VS2008 generated project working