Goto your project properties goto c++ then code generation change the runtime library to multi threaded MT.

See if that helps.