Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionList box Help Pin
celllllllll5-Apr-06 11:39
celllllllll5-Apr-06 11:39 
AnswerRe: List box Help Pin
thatsme_cool5-Apr-06 18:54
thatsme_cool5-Apr-06 18:54 
AnswerRe: List box Help Pin
Nibu babu thomas5-Apr-06 18:56
Nibu babu thomas5-Apr-06 18:56 
QuestionSendInput to Inactive Windows Possible? Pin
Coxen5-Apr-06 11:34
Coxen5-Apr-06 11:34 
AnswerRe: SendInput to Inactive Windows Possible? Pin
Ryan Binns5-Apr-06 18:37
Ryan Binns5-Apr-06 18:37 
QuestionMaintaining program control while in a loop... Pin
aquawicket5-Apr-06 11:25
aquawicket5-Apr-06 11:25 
AnswerRe: Maintaining program control while in a loop... Pin
Blake Miller5-Apr-06 13:04
Blake Miller5-Apr-06 13:04 
GeneralRe: Maintaining program control while in a loop... Pin
aquawicket6-Apr-06 9:50
aquawicket6-Apr-06 9:50 
Thanks.. that worked out great using a work thread...

Now i'm having a problem accessing the UI from within the thread.. ie. a listbox
I need to send info to the listbox from within the thread.. Any Ideas

this is what I got...

UINT MyThread( LPVOID pParam ); //prototye


UINT MyThread( LPVOID pParam )
{
while(RunThread) {
If (inputdetected){
m_ListBox1.Additem("input detected"); // <-- I don't have access to ListBox 1 from withing this thread.
}
}
return 0; // thread completed successfully
}


I call the thread to start with..

AfxBeginThread(MyThread, NULL);



-- modified at 15:50 Thursday 6th April, 2006
GeneralRe: Maintaining program control while in a loop... Pin
Blake Miller6-Apr-06 10:49
Blake Miller6-Apr-06 10:49 
GeneralThanks :) Pin
aquawicket6-Apr-06 11:42
aquawicket6-Apr-06 11:42 
QuestionError R6034: XP Manifest w/ CreateProcess() Pin
fire fly5-Apr-06 10:22
fire fly5-Apr-06 10:22 
QuestionRe: Error R6034: XP Manifest w/ CreateProcess() Pin
David Crow5-Apr-06 10:38
David Crow5-Apr-06 10:38 
AnswerRe: Error R6034: XP Manifest w/ CreateProcess() Pin
fire fly5-Apr-06 15:23
fire fly5-Apr-06 15:23 
QuestionDirectory Control Pin
jonesap55-Apr-06 8:21
jonesap55-Apr-06 8:21 
AnswerRe: Directory Control Pin
Waldermort5-Apr-06 8:27
Waldermort5-Apr-06 8:27 
GeneralRe: Directory Control Pin
David Crow5-Apr-06 8:37
David Crow5-Apr-06 8:37 
GeneralRe: Directory Control Pin
Waldermort5-Apr-06 8:40
Waldermort5-Apr-06 8:40 
AnswerRe: Directory Control Pin
David Crow5-Apr-06 8:37
David Crow5-Apr-06 8:37 
AnswerRe: Directory Control Pin
gamitech5-Apr-06 13:03
gamitech5-Apr-06 13:03 
QuestionPopulating web based default email client fields Pin
tnguyen4445-Apr-06 8:13
tnguyen4445-Apr-06 8:13 
AnswerRe: Populating web based default email client fields Pin
David Crow5-Apr-06 8:34
David Crow5-Apr-06 8:34 
GeneralRe: Populating web based default email client fields Pin
tnguyen4445-Apr-06 8:55
tnguyen4445-Apr-06 8:55 
GeneralRe: Populating web based default email client fields Pin
David Crow5-Apr-06 9:07
David Crow5-Apr-06 9:07 
GeneralRe: Populating web based default email client fields Pin
tnguyen4445-Apr-06 10:23
tnguyen4445-Apr-06 10:23 
GeneralRe: Populating web based default email client fields Pin
David Crow5-Apr-06 10:35
David Crow5-Apr-06 10:35 

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.