>>Make sure you define CRT_SECURE_NO_DEPRECATE in the Project->Properties->C/C++->Preprocessor->Preprocessor definitions field. Otherwise the compiler will flag every reference to a C standard library function as deprecated.
That didn't work for me. I use pragmas to disable those warnings
#pragma warning(disable: 4996)