There is this one error that is getting me frustrated I tried most stuff to try and fix it..

'mbstowcs': This function or variable may be unsafe consider using mbstowcs_s instead. To disable deprecation use _CRT_SECURE_NO_WARNINGS

But when ever I change it to mbstowcs_s it's not recognized and when I do _CRT_SECURE_NO_WARNINGS nothing changes just the same error over and over again

Here is the code where the errror is...
-----------------------------------------------------------------------------
mbstowcs(pszStringWide, fmt, (strlen(fmt) + 1) * sizeof(wchar_t));
-----------------------------------------------------------------------------