Added Visual Studio solution and edited code to work on vc compiler