Click here to Skip to main content
14,331,130 members

ATL / WTL / STL

 
AnswerRe: how to add web service in VC++2010 Pin
Richard MacCutchan22-Mar-14 3:04
protectorRichard MacCutchan22-Mar-14 3:04 
GeneralRe: how to add web service in VC++2010 Pin
Shivanand Gupta23-Mar-14 19:48
memberShivanand Gupta23-Mar-14 19:48 
GeneralRe: how to add web service in VC++2010 Pin
Richard MacCutchan23-Mar-14 22:55
protectorRichard MacCutchan23-Mar-14 22:55 
QuestionHow to Custom Image on a Built-In Ribbon Button by c++ Pin
Member 1023648726-Feb-14 0:21
memberMember 1023648726-Feb-14 0:21 
QuestionUnit Testing Framework Pin
J_Me17-Feb-14 22:27
professionalJ_Me17-Feb-14 22:27 
QuestionWCHAR copy one char at a time Pin
bkelly132-Feb-14 8:15
memberbkelly132-Feb-14 8:15 
AnswerRe: WCHAR copy one char at a time Pin
Richard MacCutchan2-Feb-14 21:56
protectorRichard MacCutchan2-Feb-14 21:56 
GeneralRe: WCHAR copy one char at a time Pin
bkelly133-Feb-14 15:01
memberbkelly133-Feb-14 15:01 
Refer back to the OP. The strings have the same maximum length. String destination already has 20 characters so 60 more will not fit.

Function wcscpy() has only two arguments, destination and source. We can write the destination in the format: destination[20] to start there, but there is no way to specify that only 39 of the source characters are to be copied.

However, having seen that, I then found wcscpy_s() with three arguments. We can specify destination[ 20 ], then specify the second argument would be 40.

We can generalize this with a calculated length. But I am unsure about the right functions to use with WCHAR to get the max length and to get the current length. I will try to find that and post again.
Thanks for your time
If you work with telemetry, please check this bulletin board: http://www.bkelly.ws/irig_106/

GeneralRe: WCHAR copy one char at a time Pin
Richard MacCutchan3-Feb-14 21:39
protectorRichard MacCutchan3-Feb-14 21:39 
GeneralRe: WCHAR copy one char at a time Pin
bkelly134-Feb-14 16:14
memberbkelly134-Feb-14 16:14 
AnswerRe: WCHAR copy one char at a time Pin
Jeremy Falcon12-May-14 6:08
professionalJeremy Falcon12-May-14 6:08 
QuestionPlease describe overlapped operations Pin
bkelly1319-Jan-14 9:16
memberbkelly1319-Jan-14 9:16 
AnswerRe: Please describe overlapped operations Pin
Richard MacCutchan20-Jan-14 0:18
protectorRichard MacCutchan20-Jan-14 0:18 
GeneralRe: Please describe overlapped operations Pin
bkelly1320-Jan-14 3:46
memberbkelly1320-Jan-14 3:46 
GeneralRe: Please describe overlapped operations Pin
Richard MacCutchan20-Jan-14 6:38
protectorRichard MacCutchan20-Jan-14 6:38 
GeneralRe: Please describe overlapped operations Pin
bkelly1320-Jan-14 9:12
memberbkelly1320-Jan-14 9:12 
GeneralRe: Please describe overlapped operations Pin
Richard MacCutchan20-Jan-14 22:12
protectorRichard MacCutchan20-Jan-14 22:12 
GeneralRe: Please describe overlapped operations Pin
pasztorpisti4-Apr-14 10:25
professionalpasztorpisti4-Apr-14 10:25 
GeneralRe: Please describe overlapped operations Pin
pasztorpisti4-Apr-14 10:26
professionalpasztorpisti4-Apr-14 10:26 
SuggestionRe: Please describe overlapped operations Pin
Richard MacCutchan4-Apr-14 23:15
protectorRichard MacCutchan4-Apr-14 23:15 
QuestionWinsock Peer to Peer using UDP and TCP Pin
SD120810-Jan-14 4:27
memberSD120810-Jan-14 4:27 
AnswerRe: Winsock Peer to Peer using UDP and TCP Pin
Albert Holguin10-Jan-14 4:59
professionalAlbert Holguin10-Jan-14 4:59 
GeneralRe: Winsock Peer to Peer using UDP and TCP Pin
SD120810-Jan-14 5:08
memberSD120810-Jan-14 5:08 
GeneralRe: Winsock Peer to Peer using UDP and TCP Pin
Albert Holguin10-Jan-14 7:34
professionalAlbert Holguin10-Jan-14 7:34 
GeneralRe: Winsock Peer to Peer using UDP and TCP Pin
SoMad10-Jan-14 8:56
protectorSoMad10-Jan-14 8:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.