wcscpy_s header file?

  • Thread starter Thread starter Mike C#
  • Start date Start date
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!
 
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.

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.

-cd
 
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.

Cool, I'll check it out. Thanks!
 
Mike said:
Cool, I'll check it out. Thanks!

Note that the _s functions are non-standard, and not portable to other
compilers or platforms. Only use them if portability is not a concern.

Tom
 
Back
Top