Click here to Skip to main content
15,898,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalprogrammatically prevent dialog from resize and move Pin
erkanina14-Dec-04 2:36
erkanina14-Dec-04 2:36 
GeneralRe: programmatically prevent dialog from resize and move Pin
Blake Miller14-Dec-04 4:09
Blake Miller14-Dec-04 4:09 
GeneralRe: programmatically prevent dialog from resize and move Pin
erkanina14-Dec-04 21:28
erkanina14-Dec-04 21:28 
Generalproblem with writing to file Pin
gamitech14-Dec-04 2:26
gamitech14-Dec-04 2:26 
GeneralRe: problem with writing to file Pin
Iain Clarke, Warrior Programmer14-Dec-04 6:01
Iain Clarke, Warrior Programmer14-Dec-04 6:01 
GeneralRe: problem with writing to file Pin
gamitech15-Dec-04 1:08
gamitech15-Dec-04 1:08 
Questionserial comm timeout problem? Pin
doneirik14-Dec-04 2:19
doneirik14-Dec-04 2:19 
AnswerRe: serial comm timeout problem? Pin
Roger Stoltz14-Dec-04 4:30
Roger Stoltz14-Dec-04 4:30 
If there is a problem with the data reception, I doubt the problem has anything to do with the timeout values for writing.
If the received data differs depending on your writing timeout values it's more likely you have a timing problem accessing the port.
If you have opened the port non-overlapped a reading operation will prevent a writing operation until it reaches its timeout and vice versa.

Are you sure that no other signals have to be manipulated such as DTR and/or RTS? Usually they have, try with HyperTerminal which sets both RTS and DTR to active state if you select no handshaking.
This is easily done with the DCB struct and SetCommState.

To nail down the real problem, try this:
1. Do not use read/write timeouts. MSDN tells you how to set this up.
2. Connect to another PC or COM-port and open it with HyperTerminal, see if you can receive expected data sent from HT.
Alternate 2: create a loop-back by connecting Rx and Tx (pin 2 and 3) and see if you can read the data you are sending.

Hope this helps
--
Roger

QuestionDelete object, necessaray?? Pin
tpndtbk14-Dec-04 2:15
tpndtbk14-Dec-04 2:15 
AnswerRe: Delete object, necessaray?? Pin
Maximilien14-Dec-04 2:27
Maximilien14-Dec-04 2:27 
AnswerRe: Delete object, necessaray?? Pin
V.14-Dec-04 3:00
professionalV.14-Dec-04 3:00 
GeneralRe: Delete object, necessaray?? Pin
toxcct14-Dec-04 4:29
toxcct14-Dec-04 4:29 
GeneralRe: Delete object, necessaray?? Pin
V.14-Dec-04 4:38
professionalV.14-Dec-04 4:38 
GeneralRe: Delete object, necessaray?? Pin
toxcct14-Dec-04 4:53
toxcct14-Dec-04 4:53 
GeneralRe: Delete object, necessaray?? Pin
David Crow14-Dec-04 5:24
David Crow14-Dec-04 5:24 
AnswerRe: Delete object, necessaray?? Pin
tpndtbk14-Dec-04 3:30
tpndtbk14-Dec-04 3:30 
GeneralRe: Delete object, necessaray?? Pin
tpndtbk14-Dec-04 3:34
tpndtbk14-Dec-04 3:34 
GeneralRe: Delete object, necessaray?? Pin
Jon Hulatt14-Dec-04 4:19
Jon Hulatt14-Dec-04 4:19 
GeneralRe: Delete object, necessaray?? Pin
David Crow14-Dec-04 5:36
David Crow14-Dec-04 5:36 
AnswerRe: Delete object, necessaray?? Pin
toxcct14-Dec-04 4:36
toxcct14-Dec-04 4:36 
Generala ftp server where download XP for free Pin
Anonymous14-Dec-04 1:21
Anonymous14-Dec-04 1:21 
GeneralRe: a ftp server where download XP for free Pin
Antony M Kancidrowski14-Dec-04 1:42
Antony M Kancidrowski14-Dec-04 1:42 
GeneralRe: a ftp server where download XP for free Pin
Jon Hulatt14-Dec-04 4:20
Jon Hulatt14-Dec-04 4:20 
GeneralRe: a ftp server where download XP for free Pin
toxcct14-Dec-04 4:27
toxcct14-Dec-04 4:27 
GeneralSerialization Pin
AslFunky14-Dec-04 1:17
AslFunky14-Dec-04 1:17 

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.