Click here to Skip to main content
15,891,375 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can I monitor the cts pin of serial port using dcb Pin
yaminisridaran5-Sep-07 20:06
yaminisridaran5-Sep-07 20:06 
AnswerRe: How can I monitor the cts pin of serial port using dcb Pin
chandu0045-Sep-07 20:26
chandu0045-Sep-07 20:26 
GeneralRe: How can I monitor the cts pin of serial port using dcb Pin
yaminisridaran5-Sep-07 20:30
yaminisridaran5-Sep-07 20:30 
GeneralRe: How can I monitor the cts pin of serial port using dcb Pin
chandu0045-Sep-07 20:51
chandu0045-Sep-07 20:51 
AnswerRe: How can I monitor the cts pin of serial port using dcb Pin
QuickDeveloper5-Sep-07 20:41
QuickDeveloper5-Sep-07 20:41 
GeneralRe: How can I monitor the cts pin of serial port using dcb Pin
yaminisridaran5-Sep-07 20:43
yaminisridaran5-Sep-07 20:43 
AnswerRe: How can I monitor the cts pin of serial port using dcb Pin
Cedric Moonen5-Sep-07 20:50
Cedric Moonen5-Sep-07 20:50 
GeneralRe: How can I monitor the cts pin of serial port using dcb Pin
yaminisridaran5-Sep-07 20:56
yaminisridaran5-Sep-07 20:56 
I already using GetCommState.

My Code
CString strPort;
strPort.Format("COM%d:",1);
m_hPort=CreateFile(strPort,GENERIC_READ|GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL);
if(m_hPort==INVALID_HANDLE_VALUE)
{
return false;
}

GetCommState(m_hPort,&dcb);

BOOL res;
dcb.fOutxCtsFlow=true;
res=SetCommState(m_hPort,&dcb);
// Configure serial port
GetCommState(m_hPort,&dcb);


if(dcb.fOutxCtsFlow==TRUE)
TRACE("TURNED OFF");
else if(dcb.fOutxCtsFlow==FALSE)
{
TRACE("TURNED ON");
}
dcb.fOutxCtsFlow is always true even the voltage level changes

S.Yamini
GeneralRe: How can I monitor the cts pin of serial port using dcb Pin
Cedric Moonen5-Sep-07 20:59
Cedric Moonen5-Sep-07 20:59 
QuestionUsing MFC to access the internet Pin
D_code_writer5-Sep-07 19:43
D_code_writer5-Sep-07 19:43 
AnswerRe: Using MFC to access the internet Pin
Hamid_RT5-Sep-07 20:20
Hamid_RT5-Sep-07 20:20 
GeneralRe: Using MFC to access the internet Pin
ThatsAlok6-Sep-07 5:19
ThatsAlok6-Sep-07 5:19 
GeneralRe: Using MFC to access the internet Pin
Hamid_RT6-Sep-07 7:26
Hamid_RT6-Sep-07 7:26 
AnswerRe: Using MFC to access the internet Pin
ThatsAlok5-Sep-07 23:33
ThatsAlok5-Sep-07 23:33 
QuestionINT_PTR Pin
nitin35-Sep-07 19:32
nitin35-Sep-07 19:32 
AnswerRe: INT_PTR Pin
Michael Dunn5-Sep-07 19:39
sitebuilderMichael Dunn5-Sep-07 19:39 
GeneralRe: INT_PTR Pin
nitin35-Sep-07 20:19
nitin35-Sep-07 20:19 
GeneralRe: INT_PTR Pin
toxcct6-Sep-07 1:19
toxcct6-Sep-07 1:19 
QuestionRe: INT_PTR Pin
David Crow6-Sep-07 3:32
David Crow6-Sep-07 3:32 
QuestionCD ROM open close problem Pin
p_5-Sep-07 19:22
p_5-Sep-07 19:22 
AnswerRe: CD ROM open close problem Pin
nitin35-Sep-07 20:07
nitin35-Sep-07 20:07 
GeneralRe: CD ROM open close problem Pin
p_5-Sep-07 20:23
p_5-Sep-07 20:23 
GeneralRe: CD ROM open close problem Pin
nitin35-Sep-07 20:41
nitin35-Sep-07 20:41 
GeneralRe: CD ROM open close problem Pin
p_5-Sep-07 22:10
p_5-Sep-07 22:10 
QuestionWindows Filtering Platform Pin
shiraztk5-Sep-07 19:02
shiraztk5-Sep-07 19:02 

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.