Started new project as the origianl one had a precompiled header which the complier didn't likle alongside some fo my preprocessor directives
New project started without precompiled header, i originally thoguht it would make no difference
code copied to new project