Click here to Skip to main content
16,010,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to clear buffer of a COM port ? Pin
VC++Maniac10-Dec-08 20:27
VC++Maniac10-Dec-08 20:27 
AnswerRe: How to clear buffer of a COM port ? Pin
kapardhi10-Dec-08 21:15
kapardhi10-Dec-08 21:15 
GeneralRe: How to clear buffer of a COM port ? Pin
Roger Stoltz10-Dec-08 23:24
Roger Stoltz10-Dec-08 23:24 
QuestionRe: How to clear buffer of a COM port ? Pin
VC++Maniac10-Dec-08 23:30
VC++Maniac10-Dec-08 23:30 
AnswerRe: How to clear buffer of a COM port ? Pin
Roger Stoltz10-Dec-08 23:40
Roger Stoltz10-Dec-08 23:40 
GeneralRe: How to clear buffer of a COM port ? Pin
kapardhi11-Dec-08 1:17
kapardhi11-Dec-08 1:17 
GeneralRe: How to clear buffer of a COM port ? Pin
Roger Stoltz11-Dec-08 2:09
Roger Stoltz11-Dec-08 2:09 
GeneralRe: How to clear buffer of a COM port ? Pin
kapardhi11-Dec-08 2:25
kapardhi11-Dec-08 2:25 
Sorry u are misunderstanding me !
Actually in my application i have an option to change the baudrate, parity, stopbit, databit of the device connected as well as to change the baudrate, parity, stopbit, databit of the COM port.

now lets assume one of the user have changed the device baud rate to 115200, with even parity, 6 databits 2 stopbits.

now i donot know the configuration of the connected device, so i have to change my COM port settings and send command for all combinations of baudrate, parity etc in order to communicate with the device.

when i get the correct/expected response i can conclude that this is the combination of the device!
i am also using CommTimeOuts !

Thanks !
QuestionRe: How to clear buffer of a COM port ? Pin
Roger Stoltz11-Dec-08 3:01
Roger Stoltz11-Dec-08 3:01 
AnswerRe: How to clear buffer of a COM port ? Pin
Iain Clarke, Warrior Programmer11-Dec-08 0:13
Iain Clarke, Warrior Programmer11-Dec-08 0:13 
GeneralRe: How to clear buffer of a COM port ? Pin
kapardhi11-Dec-08 1:18
kapardhi11-Dec-08 1:18 
AnswerRe: How to clear buffer of a COM port ? Pin
JudyL_MD11-Dec-08 8:07
JudyL_MD11-Dec-08 8:07 
QuestionRe: How to clear buffer of a COM port ? Pin
kapardhi11-Dec-08 19:41
kapardhi11-Dec-08 19:41 
AnswerRe: How to clear buffer of a COM port ? Pin
JudyL_MD12-Dec-08 3:14
JudyL_MD12-Dec-08 3:14 
QuestionHow to create .DBX file (MS-OUTLOOK EXPRESS files) using vc++ 6.0 Pin
ravi malik10-Dec-08 19:44
ravi malik10-Dec-08 19:44 
QuestionCreate DIB from a HBITMAP Pin
VC++Maniac10-Dec-08 19:35
VC++Maniac10-Dec-08 19:35 
AnswerRe: Create DIB from a HBITMAP Pin
Hamid_RT10-Dec-08 20:17
Hamid_RT10-Dec-08 20:17 
QuestionRe: Create DIB from a HBITMAP Pin
VC++Maniac10-Dec-08 20:25
VC++Maniac10-Dec-08 20:25 
AnswerRe: Create DIB from a HBITMAP Pin
enhzflep10-Dec-08 23:34
enhzflep10-Dec-08 23:34 
GeneralRe: Create DIB from a HBITMAP Pin
VC++Maniac10-Dec-08 23:43
VC++Maniac10-Dec-08 23:43 
GeneralRe: Create DIB from a HBITMAP Pin
akirilov11-Dec-08 0:08
akirilov11-Dec-08 0:08 
GeneralRe: Create DIB from a HBITMAP Pin
enhzflep11-Dec-08 0:11
enhzflep11-Dec-08 0:11 
GeneralRe: Create DIB from a HBITMAP Pin
VC++Maniac11-Dec-08 0:25
VC++Maniac11-Dec-08 0:25 
AnswerRe: Create DIB from a HBITMAP Pin
Mark Salsbery11-Dec-08 7:08
Mark Salsbery11-Dec-08 7:08 
QuestionRe: Create DIB from a HBITMAP Pin
VC++Maniac14-Dec-08 17:42
VC++Maniac14-Dec-08 17:42 

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.