Click here to Skip to main content
15,901,426 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRebar resizing Pin
__makaveli__5-Jul-05 22:12
__makaveli__5-Jul-05 22:12 
Generaldirectshow Pin
URtruefriendalways5-Jul-05 22:03
sussURtruefriendalways5-Jul-05 22:03 
GeneralMDI Parent Size Problem Pin
yccheok5-Jul-05 21:51
yccheok5-Jul-05 21:51 
GeneralRe: MDI Parent Size Problem Pin
sayup5-Jul-05 22:19
sayup5-Jul-05 22:19 
GeneralRe: MDI Parent Size Problem Pin
David Crow6-Jul-05 2:41
David Crow6-Jul-05 2:41 
GeneralRe: MDI Parent Size Problem Pin
sayup6-Jul-05 5:07
sayup6-Jul-05 5:07 
GeneralRe: MDI Parent Size Problem Pin
David Crow6-Jul-05 5:56
David Crow6-Jul-05 5:56 
GeneralSimultaneous access to a serial device from two threads Pin
Juergen Kordes5-Jul-05 21:30
Juergen Kordes5-Jul-05 21:30 
Hi,
can anybody tell me how to access to a serial device from two threads simultaneously? The problem: I open a serial device in a function (with 'CreateFile(...)') and then I start one thread for writing to this device and one for reading. Reading and writing must be independent, because I can receive unexpected data or have to send some unexpectedly.
Passing the device's handle to the threads just lets one thread (the one which tries to access later) crash. In the writing thread I call 'WriteFile(hdlSerDev,...)', in the reading thread I call 'WaitCommEvent( hdlSerDev,...)'.

Juergen Kordes
GeneralRe: Simultaneous access to a serial device from two threads Pin
ThatsAlok5-Jul-05 21:42
ThatsAlok5-Jul-05 21:42 
Generalwindow media player Pin
Anonymous5-Jul-05 21:17
Anonymous5-Jul-05 21:17 
GeneralRe: window media player Pin
Jose Lamas Rios6-Jul-05 3:39
Jose Lamas Rios6-Jul-05 3:39 
Generalip adress Pin
_tasleem5-Jul-05 20:57
_tasleem5-Jul-05 20:57 
GeneralRe: ip adress Pin
ThatsAlok5-Jul-05 21:35
ThatsAlok5-Jul-05 21:35 
GeneralFont Problem Pin
Pazzuzu5-Jul-05 20:46
Pazzuzu5-Jul-05 20:46 
QuestionTo delete functions via IDE of VC++ 2003 ? Pin
Maxwell Chen5-Jul-05 20:45
Maxwell Chen5-Jul-05 20:45 
Generalopening MDI in maximized form at startup Pin
sayup5-Jul-05 20:15
sayup5-Jul-05 20:15 
GeneralRe: opening MDI in maximized form at startup Pin
Antony T5-Jul-05 22:48
sussAntony T5-Jul-05 22:48 
Generalenum in a switch statement Pin
Ista5-Jul-05 20:13
Ista5-Jul-05 20:13 
GeneralRe: enum in a switch statement Pin
ThatsAlok5-Jul-05 20:26
ThatsAlok5-Jul-05 20:26 
GeneralRe: enum in a switch statement Pin
Bob Stanneveld5-Jul-05 22:18
Bob Stanneveld5-Jul-05 22:18 
GeneralRe: enum in a switch statement Pin
ThatsAlok6-Jul-05 1:44
ThatsAlok6-Jul-05 1:44 
GeneralRe: enum in a switch statement Pin
Bob Stanneveld6-Jul-05 1:47
Bob Stanneveld6-Jul-05 1:47 
GeneralRe: enum in a switch statement Pin
Ista6-Jul-05 8:56
Ista6-Jul-05 8:56 
GeneralRe: enum in a switch statement Pin
Rick York6-Jul-05 11:46
mveRick York6-Jul-05 11:46 
GeneralRe: enum in a switch statement Pin
Ista6-Jul-05 11:51
Ista6-Jul-05 11:51 

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.