473,394 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

wcscpy_s header file?

What header do I need to include to use wcscpy_s in my app? Also is there
an swprintf_s type function? Thanks!
Sep 14 '06 #1
5 5337
"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.

-cd
Sep 14 '06 #2

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

Thanks
Sep 14 '06 #3
"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

Sep 14 '06 #4

"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote in message news:u3*************@TK2MSFTNGP06.phx.gbl...
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.
Cool, I'll check it out. Thanks!
Sep 15 '06 #5
Mike C# wrote:
"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote in message news:u3*************@TK2MSFTNGP06.phx.gbl...
>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.

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
Sep 25 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

31
by: Steven T. Hatton | last post by:
If a header is not necessarily a source file, and the sequences delimited by < and > in header names aren't necessarily valid source file names, what exactly is a header? -- p->m == (*p).m == p.m...
16
by: matthurne | last post by:
I just started learning C++ on my own...I'm using Accelerated C++. Something it hasn't explained and I keep wondering about is how header files actually work. I suspect it doesn't get into it...
11
by: Steven T. Hatton | last post by:
In the past there have been lengthy discussiions regarding the role of header files in C++. People have been very adamat about header files serving as in interface to the implementation. I do...
60
by: Derrick Coetzee | last post by:
It seems like, in every C source file I've ever seen, there has been a very definite include order, as follows: - include system headers - include application headers - include the header...
4
by: Andrew Ward | last post by:
Hi All, I was wondering if it is possible to use precompiled headers without having to include a <stdafx.h> or whatever in every source file. My problem is that I have a project that makes heavy...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
16
by: wdh3rd | last post by:
Hi everyone. I'm new to C and I have a few questions: I am making files for permutations and combinations. Files to be made are perm.c, perm.h, combo.c, and combo.h. Since both combinations...
1
by: Shalako | last post by:
I check my error log and see these entries: malformed header from script. Bad header= Missing gauge reports are ind: padata.pl /perl/pema/padata.pl did not send an HTTP header malformed...
1
by: Proogeren | last post by:
I have a problem with a httpwebrequest that I am creating. The request in itself looks correct but using fiddler I see that a www-authentication header is sent along as well. The code is pasted...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.