Click here to Skip to main content
15,070,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WaitForSingleObject best practices Pin
leon de boer28-Sep-16 19:20
Memberleon de boer28-Sep-16 19:20 
GeneralRe: WaitForSingleObject best practices Pin
leon de boer30-Sep-16 9:42
Memberleon de boer30-Sep-16 9:42 
GeneralRe: WaitForSingleObject best practices Pin
ForNow30-Sep-16 9:52
MemberForNow30-Sep-16 9:52 
GeneralRe: WaitForSingleObject best practices Pin
Joe Woodbury24-Oct-16 14:31
professionalJoe Woodbury24-Oct-16 14:31 
GeneralRe: WaitForSingleObject best practices Pin
Joe Woodbury24-Oct-16 14:29
professionalJoe Woodbury24-Oct-16 14:29 
QuestionDevice on RS232 only responds to first send request (Visual C++) Pin
David MacKinnon27-Sep-16 8:18
MemberDavid MacKinnon27-Sep-16 8:18 
AnswerRe: Device on RS232 only responds to first send request (Visual C++) Pin
jeron127-Sep-16 10:41
Memberjeron127-Sep-16 10:41 
GeneralRe: Device on RS232 only responds to first send request (Visual C++) Pin
David MacKinnon27-Sep-16 11:38
MemberDavid MacKinnon27-Sep-16 11:38 
I tried both lengthening the timeouts and rewriting the code using overlapped communication as per bt[^] but the result is the same. First command is received and I can get a response. The second command, while sent without error, is followed by no response.

If it helps, after running the code I have to run the terminal program and issue a command twice to get it back to a responsive state. Otherwise running the code twice in a row doesn't even return anything for the first command. It's like it gets stuck waiting after sending the response.
GeneralRe: Device on RS232 only responds to first send request (Visual C++) Pin
jeron127-Sep-16 11:44
Memberjeron127-Sep-16 11:44 
GeneralRe: Device on RS232 only responds to first send request (Visual C++) Pin
David MacKinnon27-Sep-16 12:10
MemberDavid MacKinnon27-Sep-16 12:10 
GeneralRe: Device on RS232 only responds to first send request (Visual C++) Pin
jeron127-Sep-16 13:28
Memberjeron127-Sep-16 13:28 
GeneralRe: Device on RS232 only responds to first send request (Visual C++) Pin
David MacKinnon28-Sep-16 12:30
MemberDavid MacKinnon28-Sep-16 12:30 
GeneralRe: Device on RS232 only responds to first send request (Visual C++) Pin
jeron129-Sep-16 4:19
Memberjeron129-Sep-16 4:19 
GeneralRe: Device on RS232 only responds to first send request (Visual C++) Pin
David MacKinnon29-Sep-16 4:43
MemberDavid MacKinnon29-Sep-16 4:43 
AnswerRe: Device on RS232 only responds to first send request (Visual C++) Pin
leon de boer27-Sep-16 17:18
Memberleon de boer27-Sep-16 17:18 
GeneralRe: Device on RS232 only responds to first send request (Visual C++) Pin
David MacKinnon29-Sep-16 4:45
MemberDavid MacKinnon29-Sep-16 4:45 
AnswerRe: Device on RS232 only responds to first send request (Visual C++) Pin
David MacKinnon29-Sep-16 4:40
MemberDavid MacKinnon29-Sep-16 4:40 
Question_tcscpy_s and unused buffer part Pin
leon de boer27-Sep-16 5:39
Memberleon de boer27-Sep-16 5:39 
AnswerRe: _tcscpy_s and unused buffer part Pin
Richard MacCutchan27-Sep-16 6:26
mveRichard MacCutchan27-Sep-16 6:26 
GeneralRe: _tcscpy_s and unused buffer part Pin
leon de boer27-Sep-16 18:36
Memberleon de boer27-Sep-16 18:36 
AnswerRe: _tcscpy_s and unused buffer part Pin
Richard MacCutchan27-Sep-16 6:33
mveRichard MacCutchan27-Sep-16 6:33 
AnswerRe: _tcscpy_s and unused buffer part Pin
Chris Losinger27-Sep-16 7:28
professionalChris Losinger27-Sep-16 7:28 
GeneralRe: _tcscpy_s and unused buffer part Pin
leon de boer27-Sep-16 20:24
Memberleon de boer27-Sep-16 20:24 
GeneralRe: _tcscpy_s and unused buffer part Pin
David Crow27-Sep-16 8:20
MemberDavid Crow27-Sep-16 8:20 
GeneralRe: _tcscpy_s and unused buffer part Pin
leon de boer27-Sep-16 18:35
Memberleon de boer27-Sep-16 18:35 

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.