M
Mike C#
What header do I need to include to use wcscpy_s in my app? Also is there
an swprintf_s type function? Thanks!
an swprintf_s type function? Thanks!
Mike C# said:What header do I need to include to use wcscpy_s in my app? Also is there
an swprintf_s type function? Thanks!
Carl Daniel said:According to the documentation on wcscpy_s at
http://msdn2.microsoft.com/en-us/library/td1esda9.aspx you should be able
to include <string.h> or <tchar.h>.
For swprintf_s, see
http://msdn2.microsoft.com/en-us/library/ce3zzk1k.aspx.
Mike C# said: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.
Carl Daniel said:They are only included in VC 2005, yes.
They were originally documented in this article:
http://msdn.microsoft.com/library/en-us/dnsecure/html/strsafe.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.
Mike said:Cool, I'll check it out. Thanks!