Click here to Skip to main content
15,881,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error in CString to const std::string conversion. Pin
Le@rner3-Jul-11 20:57
Le@rner3-Jul-11 20:57 
AnswerRe: error in CString to const std::string conversion. Pin
Rajesh R Subramanian3-Jul-11 20:59
professionalRajesh R Subramanian3-Jul-11 20:59 
GeneralRe: error in CString to const std::string conversion. Pin
Le@rner3-Jul-11 21:23
Le@rner3-Jul-11 21:23 
GeneralRe: error in CString to const std::string conversion. Pin
Richard MacCutchan3-Jul-11 22:27
mveRichard MacCutchan3-Jul-11 22:27 
GeneralRe: error in CString to const std::string conversion. Pin
PJ Arends4-Jul-11 11:18
professionalPJ Arends4-Jul-11 11:18 
GeneralRe: error in CString to const std::string conversion. Pin
Richard MacCutchan4-Jul-11 23:51
mveRichard MacCutchan4-Jul-11 23:51 
AnswerRe: error in CString to const std::string conversion. Pin
pratik_mishra3522-Jul-11 2:40
pratik_mishra3522-Jul-11 2:40 
QuestionPassing data to running thread Pin
csrss2-Jul-11 23:12
csrss2-Jul-11 23:12 
Hi. It looks like this: there is a worker thread, which just runs and there is a button, which when clicked, should send some data to this worker thread. And now i am thinking, how this can be done. First off, i am a little bit skeptical about pipes and global variables. More real-life example would be something like this:
1. There is a thread.
2. There is a dialog window which accepts files. When file is dropped on this dialog window, thread should be notified that new file has been dropped and receive an open handle to this file and a file name.
I was thinking about user mode APC but actually dont know if using this i can communicate with a thread or change its context, influence its variables, access its variables, modify them and use them - that would be great but the only thing i did so far with APC is terminating a thread.
Another scenario i can thinks of, is having some global structure, update it time to time, signal thread so it will know that our struct has been filled with some new info so the thread can grab it - but yet again, global variables - not so good.
Is there some "clear" and nice way of doing this?
Thanks
011011010110000101100011011010000110100101101110
0110010101110011

AnswerRe: Passing data to running thread Pin
Rajesh R Subramanian3-Jul-11 3:57
professionalRajesh R Subramanian3-Jul-11 3:57 
GeneralRe: Passing data to running thread Pin
csrss3-Jul-11 4:45
csrss3-Jul-11 4:45 
GeneralRe: Passing data to running thread Pin
Rajesh R Subramanian3-Jul-11 5:46
professionalRajesh R Subramanian3-Jul-11 5:46 
GeneralRe: Passing data to running thread Pin
Albert Holguin3-Jul-11 7:32
professionalAlbert Holguin3-Jul-11 7:32 
GeneralRe: Passing data to running thread Pin
Mark Salsbery3-Jul-11 7:40
Mark Salsbery3-Jul-11 7:40 
GeneralRe: Passing data to running thread Pin
Rajesh R Subramanian3-Jul-11 8:47
professionalRajesh R Subramanian3-Jul-11 8:47 
GeneralRe: Passing data to running thread Pin
csrss3-Jul-11 9:07
csrss3-Jul-11 9:07 
AnswerRe: Passing data to running thread Pin
Mark Salsbery3-Jul-11 7:44
Mark Salsbery3-Jul-11 7:44 
GeneralRe: Passing data to running thread Pin
csrss3-Jul-11 9:03
csrss3-Jul-11 9:03 
AnswerRe: Passing data to running thread Pin
LiangGuangLin3-Jul-11 18:01
LiangGuangLin3-Jul-11 18:01 
QuestionNMAKE Error Pin
SNI2-Jul-11 5:10
SNI2-Jul-11 5:10 
AnswerRe: NMAKE Error Pin
Richard MacCutchan2-Jul-11 6:43
mveRichard MacCutchan2-Jul-11 6:43 
QuestionRe: NMAKE Error Pin
David Crow2-Jul-11 16:53
David Crow2-Jul-11 16:53 
AnswerRe: NMAKE Error Pin
SNI3-Jul-11 5:41
SNI3-Jul-11 5:41 
AnswerRe: NMAKE Error Pin
User 74293383-Jul-11 5:47
professionalUser 74293383-Jul-11 5:47 
GeneralRe: NMAKE Error [modified] Pin
SNI11-Jul-11 1:49
SNI11-Jul-11 1:49 
GeneralRe: NMAKE Error Pin
David Crow5-Jul-11 2:55
David Crow5-Jul-11 2:55 

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.