For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > July 2006 > warning C4996: '_vsnprintf' was declared deprecated









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author warning C4996: '_vsnprintf' was declared deprecated
Tarundeep Singh Kalra

2005-02-18, 8:57 pm

I am using safe functions like StringCbCat which are defined in strsafe.h

but irony is I am getting the deprectaed warnings in those "safe" safestr.h

Can somebody explain ????

TIA
Tarun



Tarundeep Singh Kalra

2005-02-18, 8:57 pm

This article helped me but the bottom question remains :-
http://blogs.msdn.com/nikolad/archi.../27/362219.aspx

Somebody help me....
Regards
Tarundeep Singh Kalra
[url]www.tarunhana.com[/url]


"Tarundeep Singh Kalra" <tarundeep.singh_at_scalent_dot_com> wrote in
message news:%23GbFjTgFFHA.560@TK2MSFTNGP15.phx.gbl...
>I am using safe functions like StringCbCat which are defined in strsafe.h
>
> but irony is I am getting the deprectaed warnings in those "safe"
> safestr.h
>
> Can somebody explain ????
>
> TIA
> Tarun
>
>
>



svk

2006-07-13, 11:35 pm

quote:
Originally posted by Tarundeep Singh Kalra
I am using safe functions like StringCbCat which are defined in strsafe.h

but irony is I am getting the deprectaed warnings in those "safe" safestr.h

Can somebody explain ????

TIA
Tarun



Arise from the dead, ye olde thread.

I had the same problem, googled it, and found this. With a bit more research, I found a possible solution (look under the second bullet). If you use DirectX, you might be including *its* version of strsafe.h. Look under the compiler warnings and see what path it spits out to for the aforementioned strsafe.h.

Of course, since this thread is so old, your project is probably solved and buried by now. But since this thread is indexed by google for anyone who searches this problem, I figured it should have a possible solution.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com