"Mike C#" <xy*@xyz.comwrote in message
news:Ol**************@TK2MSFTNGP06.phx.gbl...
>
"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote in message news:Oq**************@TK2MSFTNGP04.phx.gbl...
>"Mike C#" <xy*@xyz.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>>What header do I need to include to use wcscpy_s in my app? Also is
there an swprintf_s type function? Thanks!
According to the documentation on wcscpy_s at
http://msdn2.microsoft.com/en-us/library/td1esda9.aspx you should be able
to include <string.hor <tchar.h>.
For swprintf_s, see
http://msdn2.microsoft.com/en-us/library/ce3zzk1k.aspx.
Hmmm... Are these functions only on VS 2005? I have the latest platform
SDK and VS 2003 installed, but I can't seem to find these functions.
They are only included in VC 2005, yes.
They were originally documented in this article:
http://msdn.microsoft.com/library/en...asp?frame=true
which mentions that they're included in the SDK Core Components. They might
have been subsequently removed from the SDK, but you could check to see if
you have "strsafe.h" in your SDK include directory. If so, then you should
also have a corresponding .lib file as well.
-cd