"DR" <dr1234@yahoo.c om> wrote in message
news:eBv3zMPsFH A.3264@TK2MSFTN GP12.phx.gbl...[color=blue]
> why are those functions marked as deprecated in Vc++2005?[/color]
Because malicious applications try to exploit vulnerabilities that arise
when those functions overflow the buffers allocated to hold the strings.
[color=blue]
> what should be used instead?[/color]
There are safer variants of the old C runtime functions described here:
"DR" <dr1234@yahoo.c om> wrote in message
news:eBv3zMPsFH A.3264@TK2MSFTN GP12.phx.gbl...[color=blue]
> why are those functions marked as deprecated in Vc++2005? what should be
> used instead?
>[/color]
Read all about the security enhanced versions of CRT functions:
"DR" <dr1234@yahoo.c om> wrote in message
news:eBv3zMPsFH A.3264@TK2MSFTN GP12.phx.gbl...[color=blue]
> why are those functions marked as deprecated in Vc++2005? what should be
> used instead?[/color]
Funny, BSTR contains most of the support to avoid buffer overflows. Instead,
the C++ / C default is a zero terminated string which is infamous of being
interceptive for those overflows!...
Comment