Click here to Skip to main content
15,908,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Vista installin writable files Pin
Waldermort29-Sep-07 14:04
Waldermort29-Sep-07 14:04 
GeneralRe: Vista installin writable files Pin
Eran_Co1-Oct-07 23:23
Eran_Co1-Oct-07 23:23 
Questionsorry for distrubing Pin
krishna Vuppala29-Sep-07 2:21
krishna Vuppala29-Sep-07 2:21 
Sorry for distrubing all.
i have to create communication Between modem and Pc through RS-232.
1)i created a port along with activeX(microsoft Communication control, version 6.0)control.it works well and opened the serial port.
2)my dialoge box is having all port configaration controls(like hyperterminal) and after that two edit boxes one for commands to modem,after that submit button.
next there will edit box for responces for Modem.
3)iam not able to create thread for communication b/w pc and modem. which fuctions i have to call.pls anybody help
4)iam successfully completed the communication B/w two sys by RS-232 port.

here is the thread where i used in Communication b/w in two sys
<code>
UINT ReaderThread(LPVOID lParam)
{
CString strCount;
VARIANT vtResult;
CString str,str1;

CSerialcomDlg* m_wnd = (CSerialcomDlg*)lParam;
while(1)
{
int nCount = m_wnd->m_CommControl.GetInBufferCount();
if(nCount > 0)
{
strCount.Format("%d",nCount);


for(int i = 0; i< nCount;i++)
{
vtResult = m_wnd->m_CommControl.GetInput();

str.Format("%s",(LPCSTR)(_bstr_t)vtResult);
str1 = str;
}
m_wnd->m_edtrecvdata.SetWindowText(str1);
}
}

return TRUE;
}
</code>

AnswerRe: sorry for distrubing Pin
Gary R. Wheeler30-Sep-07 4:49
Gary R. Wheeler30-Sep-07 4:49 
AnswerRe: sorry for distrubing Pin
Roger Stoltz30-Sep-07 21:16
Roger Stoltz30-Sep-07 21:16 
Questionunknown process closing reason Pin
Member 439909428-Sep-07 23:45
Member 439909428-Sep-07 23:45 
QuestionHow can I get the ID of an activex control that the keyboard foucs staying at? Pin
pantao55128-Sep-07 22:56
pantao55128-Sep-07 22:56 
AnswerRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Naveen30-Sep-07 17:51
Naveen30-Sep-07 17:51 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Stephen Hewitt30-Sep-07 18:05
Stephen Hewitt30-Sep-07 18:05 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Naveen30-Sep-07 18:13
Naveen30-Sep-07 18:13 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Stephen Hewitt30-Sep-07 18:50
Stephen Hewitt30-Sep-07 18:50 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Naveen30-Sep-07 19:06
Naveen30-Sep-07 19:06 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Stephen Hewitt30-Sep-07 19:18
Stephen Hewitt30-Sep-07 19:18 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Naveen30-Sep-07 19:46
Naveen30-Sep-07 19:46 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
pantao5515-Oct-07 5:17
pantao5515-Oct-07 5:17 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Naveen5-Oct-07 6:03
Naveen5-Oct-07 6:03 
QuestionDesktop Pin
nitin328-Sep-07 21:17
nitin328-Sep-07 21:17 
AnswerRe: Desktop Pin
Sreedhar DV1-Oct-07 0:56
Sreedhar DV1-Oct-07 0:56 
QuestionGDI problem Pin
trioum28-Sep-07 20:53
trioum28-Sep-07 20:53 
QuestionRe: GDI problem Pin
Hamid_RT28-Sep-07 21:01
Hamid_RT28-Sep-07 21:01 
AnswerRe: GDI problem Pin
trioum28-Sep-07 21:03
trioum28-Sep-07 21:03 
GeneralRe: GDI problem Pin
Hamid_RT29-Sep-07 0:26
Hamid_RT29-Sep-07 0:26 
GeneralRe: GDI problem Pin
Mark Salsbery29-Sep-07 7:13
Mark Salsbery29-Sep-07 7:13 
GeneralRe: GDI problem Pin
Hamid_RT29-Sep-07 19:03
Hamid_RT29-Sep-07 19:03 
GeneralRe: GDI problem Pin
Hamid_RT30-Sep-07 6:43
Hamid_RT30-Sep-07 6:43 

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.