#pragma deprecated

I am getting several "#pragma deprecated" warnings because of these functions:

sprintf, swprintf, wsprintf, strcpy, wcscpy, wcscat, strcat ...

What should I do?

I was searching on Google and I have read if I include de iostream.h, it fixes the problem. But it seems it's not a good idea, because the header iostream.h is a non-standard header and does not exist on all platforms.

Another solution is to use the Strsafe Functions:

http://msdn.microsoft.com/en-us/library/windows/desktop/ff468908(v=vs.85).aspx

A description with the functions replaced by each strsafe function is included.


Comentarios

Entradas populares