Click here to Skip to main content
15,121,963 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Device on RS232 only responds to first send request (Visual C++) Pin
David MacKinnon29-Sep-16 5:40
MemberDavid MacKinnon29-Sep-16 5:40 
Question_tcscpy_s and unused buffer part Pin
leon de boer27-Sep-16 6:39
Memberleon de boer27-Sep-16 6:39 
AnswerRe: _tcscpy_s and unused buffer part Pin
Richard MacCutchan27-Sep-16 7:26
mveRichard MacCutchan27-Sep-16 7:26 
GeneralRe: _tcscpy_s and unused buffer part Pin
leon de boer27-Sep-16 19:36
Memberleon de boer27-Sep-16 19:36 
AnswerRe: _tcscpy_s and unused buffer part Pin
Richard MacCutchan27-Sep-16 7:33
mveRichard MacCutchan27-Sep-16 7:33 
AnswerRe: _tcscpy_s and unused buffer part Pin
Chris Losinger27-Sep-16 8:28
professionalChris Losinger27-Sep-16 8:28 
GeneralRe: _tcscpy_s and unused buffer part Pin
leon de boer27-Sep-16 21:24
Memberleon de boer27-Sep-16 21:24 
GeneralRe: _tcscpy_s and unused buffer part Pin
David Crow27-Sep-16 9:20
MemberDavid Crow27-Sep-16 9:20 
I reckon it has something to do with _tcscpy_s() internally calling _FILL_STRING() for the balance of the destination string. If you can live without the safe version, _tcscpy() will work as expected.

It looks like you may need to use memcpy() instead.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles



modified 29-Sep-16 0:11am.

GeneralRe: _tcscpy_s and unused buffer part Pin
leon de boer27-Sep-16 19:35
Memberleon de boer27-Sep-16 19:35 
QuestionRe: _tcscpy_s and unused buffer part Pin
David Crow28-Sep-16 3:35
MemberDavid Crow28-Sep-16 3:35 
AnswerRe: _tcscpy_s and unused buffer part Pin
leon de boer28-Sep-16 18:47
Memberleon de boer28-Sep-16 18:47 
GeneralRe: _tcscpy_s and unused buffer part Pin
David Crow28-Sep-16 19:09
MemberDavid Crow28-Sep-16 19:09 
GeneralRe: _tcscpy_s and unused buffer part Pin
leon de boer28-Sep-16 19:14
Memberleon de boer28-Sep-16 19:14 
GeneralRe: _tcscpy_s and unused buffer part Pin
David Crow29-Sep-16 4:10
MemberDavid Crow29-Sep-16 4:10 
AnswerRe: _tcscpy_s and unused buffer part Pin
Joe Woodbury24-Oct-16 15:36
professionalJoe Woodbury24-Oct-16 15:36 
QuestionArrow Key use in MFC vc++ Application Pin
rajmohan 12327-Sep-16 3:38
Memberrajmohan 12327-Sep-16 3:38 
AnswerRe: Arrow Key use in MFC vc++ Application Pin
Chris Losinger27-Sep-16 4:26
professionalChris Losinger27-Sep-16 4:26 
GeneralRe: Arrow Key use in MFC vc++ Application Pin
rajmohan 12327-Sep-16 21:05
Memberrajmohan 12327-Sep-16 21:05 
QuestionHow do you get type from format? Pin
Vaclav_26-Sep-16 6:03
MemberVaclav_26-Sep-16 6:03 
AnswerRe: How do you get type from format? Pin
Richard MacCutchan26-Sep-16 6:18
mveRichard MacCutchan26-Sep-16 6:18 
GeneralRe: How do you get type from format? Pin
Vaclav_26-Sep-16 7:12
MemberVaclav_26-Sep-16 7:12 
GeneralRe: How do you get type from format? Pin
Richard MacCutchan26-Sep-16 7:15
mveRichard MacCutchan26-Sep-16 7:15 
GeneralRe: How do you get type from format? Pin
leon de boer27-Sep-16 3:24
Memberleon de boer27-Sep-16 3:24 
GeneralRe: How do you get type from format? Pin
Vaclav_2-Oct-16 6:30
MemberVaclav_2-Oct-16 6:30 
Questionhow to create thread on windows? Pin
Member 1118935723-Sep-16 20:49
MemberMember 1118935723-Sep-16 20:49 

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.