Click here to Skip to main content
15,886,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem with HtmlHelp API Pin
Randor 15-Nov-10 2:28
professional Randor 15-Nov-10 2:28 
QuestionCompilation Error Pin
john563214-Nov-10 20:24
john563214-Nov-10 20:24 
AnswerRe: Compilation Error Pin
Cedric Moonen14-Nov-10 20:45
Cedric Moonen14-Nov-10 20:45 
GeneralRe: Compilation Error Pin
CPallini14-Nov-10 21:17
mveCPallini14-Nov-10 21:17 
GeneralRe: Compilation Error Pin
Cedric Moonen14-Nov-10 21:20
Cedric Moonen14-Nov-10 21:20 
AnswerRe: Compilation Error Pin
Richard MacCutchan14-Nov-10 23:07
mveRichard MacCutchan14-Nov-10 23:07 
QuestionHow can access the same port by diffreant threads at same time? Pin
Le@rner14-Nov-10 20:12
Le@rner14-Nov-10 20:12 
AnswerRe: How can access the same port by diffreant threads at same time? PinPopular
Cedric Moonen14-Nov-10 20:49
Cedric Moonen14-Nov-10 20:49 
You can't do something like that. Furthermore, it is almost impossible to manage: suppose that a thread starts to read a couple of bytes, then another thread comes in and read another couple of bytes: how will you manage such a situation ?
What you can do however, is have one thread that reads the port and sort the information for the different threads to process: there's one buffer for each thread processing data and the thread which reads from the port puts the data in the appropriate buffer (and signal the processing thread that data is available).

Anyway, for which reason do you need to have multiple threads accessing the port ?
Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

GeneralRe: How can access the same port by diffreant threads at same time? Pin
Le@rner14-Nov-10 21:22
Le@rner14-Nov-10 21:22 
GeneralRe: How can access the same port by diffreant threads at same time? Pin
Cedric Moonen14-Nov-10 21:31
Cedric Moonen14-Nov-10 21:31 
GeneralRe: How can access the same port by diffreant threads at same time? Pin
Le@rner14-Nov-10 21:33
Le@rner14-Nov-10 21:33 
GeneralRe: How can access the same port by diffreant threads at same time? Pin
CPallini14-Nov-10 21:53
mveCPallini14-Nov-10 21:53 
GeneralRe: How can access the same port by diffreant threads at same time? Pin
Cedric Moonen14-Nov-10 21:59
Cedric Moonen14-Nov-10 21:59 
GeneralRe: How can access the same port by diffreant threads at same time? Pin
CPallini14-Nov-10 21:22
mveCPallini14-Nov-10 21:22 
Questionhow to display contents of a text file in EditBox?? [modified] Pin
MahaKh14-Nov-10 19:45
MahaKh14-Nov-10 19:45 
QuestionRe: how to display contents of a text file in EditBox?? Pin
CPallini14-Nov-10 21:28
mveCPallini14-Nov-10 21:28 
AnswerRe: how to display contents of a text file in EditBox?? Pin
Cool_Dev14-Nov-10 21:42
Cool_Dev14-Nov-10 21:42 
QuestionReadDirectoryChangesW failing Pin
Subrat Patnaik14-Nov-10 19:25
Subrat Patnaik14-Nov-10 19:25 
AnswerRe: ReadDirectoryChangesW failing Pin
Richard MacCutchan14-Nov-10 23:05
mveRichard MacCutchan14-Nov-10 23:05 
QuestionOpengl Multithreading (wglMakeCurrent() & wglShareLists() ) issue Pin
James_72214-Nov-10 18:32
James_72214-Nov-10 18:32 
QuestionHow to get the whole view's screen shot when the view has scroll bar ? Pin
wangningyu14-Nov-10 17:34
wangningyu14-Nov-10 17:34 
AnswerRe: How to get the whole view's screen shot when the view has scroll bar ? Pin
Dr.Walt Fair, PE14-Nov-10 18:16
professionalDr.Walt Fair, PE14-Nov-10 18:16 
GeneralRe: How to get the whole view's screen shot when the view has scroll bar ? Pin
wangningyu14-Nov-10 18:49
wangningyu14-Nov-10 18:49 
GeneralRe: How to get the whole view's screen shot when the view has scroll bar ? Pin
Dr.Walt Fair, PE14-Nov-10 19:02
professionalDr.Walt Fair, PE14-Nov-10 19:02 
GeneralRe: How to get the whole view's screen shot when the view has scroll bar ? Pin
wangningyu14-Nov-10 19:06
wangningyu14-Nov-10 19:06 

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.