Click here to Skip to main content
15,897,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to read windows2003 IPsec Settings Pin
jianxin08051-Feb-08 15:14
jianxin08051-Feb-08 15:14 
GeneralRunning Software on a remote machine Pin
Bram van Kampen1-Feb-08 14:44
Bram van Kampen1-Feb-08 14:44 
GeneralCreateHardwareEventMoniker Pin
act_x1-Feb-08 12:54
act_x1-Feb-08 12:54 
Questiona question of c++ primer in chaper 10 Pin
jianfengshxy1-Feb-08 11:03
jianfengshxy1-Feb-08 11:03 
GeneralRe: a question of c++ primer in chaper 10 Pin
Mark Salsbery1-Feb-08 11:30
Mark Salsbery1-Feb-08 11:30 
GeneralRe: a question of c++ primer in chaper 10 Pin
David Crow1-Feb-08 12:08
David Crow1-Feb-08 12:08 
GeneralRe: a question of c++ primer in chaper 10 Pin
Luc Pattyn1-Feb-08 12:09
sitebuilderLuc Pattyn1-Feb-08 12:09 
QuestionComm Timeout problem Pin
jonsey298471-Feb-08 10:18
jonsey298471-Feb-08 10:18 
I am writting an application that utilizes non-overlapped serial communication, I am writing the application using lcc-win32. If I have a loop back connector connected to the COM port all is well, I send and recevie data, but if I unplug the loopback my application locks up. Time outs are set as shown below, my call to SetCommTimeouts returns TRUE.

lpcCOMPortTimeOuts.ReadIntervalTimeout = 1000;
lpcCOMPortTimeOuts.ReadTotalTimeoutConstant = 1000;
lpcCOMPortTimeOuts.ReadTotalTimeoutMultiplier = 1000;
lpcCOMPortTimeOuts.WriteTotalTimeoutConstant = 1000;
lpcCOMPortTimeOuts.WriteTotalTimeoutMultiplier = 1000;

Was I mistaken in my assumption that these settings would set an error if the port received no response? Just to check myself my undersatnding of overlapped/non-overlapped comm is that overlapped allows other threads to run?

Any help would be greatly appreciated by this Confused | :confused: newbie.
GeneralRe: Comm Timeout problem Pin
Luc Pattyn1-Feb-08 12:13
sitebuilderLuc Pattyn1-Feb-08 12:13 
GeneralRe: Comm Timeout problem Pin
jonsey298471-Feb-08 23:24
jonsey298471-Feb-08 23:24 
GeneralRe: Comm Timeout problem Pin
Luc Pattyn2-Feb-08 2:31
sitebuilderLuc Pattyn2-Feb-08 2:31 
GeneralRe: Comm Timeout problem Pin
jonsey298472-Feb-08 7:56
jonsey298472-Feb-08 7:56 
GeneralRe: Comm Timeout problem Pin
Luc Pattyn2-Feb-08 8:01
sitebuilderLuc Pattyn2-Feb-08 8:01 
GeneralRe: Comm Timeout problem Pin
CPallini2-Feb-08 11:04
mveCPallini2-Feb-08 11:04 
GeneralRe: Comm Timeout problem Pin
Luc Pattyn2-Feb-08 11:38
sitebuilderLuc Pattyn2-Feb-08 11:38 
GeneralRe: Comm Timeout problem Pin
CPallini2-Feb-08 22:10
mveCPallini2-Feb-08 22:10 
GeneralMFC component gallery Pin
MFCfun1-Feb-08 7:37
MFCfun1-Feb-08 7:37 
GeneralRe: MFC component gallery Pin
Dave Calkins1-Feb-08 7:52
Dave Calkins1-Feb-08 7:52 
GeneralRe: MFC component gallery Pin
MFCfun1-Feb-08 8:04
MFCfun1-Feb-08 8:04 
GeneralRe: MFC component gallery Pin
Dave Calkins1-Feb-08 9:12
Dave Calkins1-Feb-08 9:12 
QuestionRe: MFC component gallery Pin
David Crow1-Feb-08 10:30
David Crow1-Feb-08 10:30 
GeneralConvert TLB file (type library) to IDL definition file Pin
Alexander M.,1-Feb-08 7:11
Alexander M.,1-Feb-08 7:11 
GeneralRe: Convert TLB file (type library) to IDL definition file Pin
led mike1-Feb-08 7:35
led mike1-Feb-08 7:35 
GeneralRe: Convert TLB file (type library) to IDL definition file Pin
Dave Calkins1-Feb-08 7:56
Dave Calkins1-Feb-08 7:56 
GeneralRe: Convert TLB file (type library) to IDL definition file Pin
Alexander M.,1-Feb-08 9:19
Alexander M.,1-Feb-08 9:19 

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.