Click here to Skip to main content
15,042,397 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Array Pin
David Crow28-Aug-08 3:44
MemberDavid Crow28-Aug-08 3:44 
QuestionInserting value in list control through worker thread Pin
VCProgrammer27-Aug-08 20:39
MemberVCProgrammer27-Aug-08 20:39 
AnswerRe: Inserting value in list control through worker thread Pin
Nibu babu thomas27-Aug-08 20:50
MemberNibu babu thomas27-Aug-08 20:50 
GeneralRe: Inserting value in list control through worker thread Pin
VCProgrammer27-Aug-08 20:53
MemberVCProgrammer27-Aug-08 20:53 
GeneralRe: Inserting value in list control through worker thread Pin
Nibu babu thomas27-Aug-08 21:47
MemberNibu babu thomas27-Aug-08 21:47 
GeneralRe: Inserting value in list control through worker thread Pin
Dhiraj kumar Saini27-Aug-08 21:54
MemberDhiraj kumar Saini27-Aug-08 21:54 
QuestionRe: Inserting value in list control through worker thread Pin
Roger Stoltz27-Aug-08 20:56
MemberRoger Stoltz27-Aug-08 20:56 
AnswerRe: Inserting value in list control through worker thread Pin
Arman S.27-Aug-08 21:20
MemberArman S.27-Aug-08 21:20 
Your all GUI related stuff should be in the UI thread (supposedely the main thread of the application).
When the worker thread is done with its calculations, it should PostMessage to the parent window of the list ctrl (or some other relevant window in the UI thread) by sending the result of its calculation. The important point here is that the worker thread MUST NOT directly modify a UI element, e.g. a list control (this would cause sync issues with unexpected errors).

Have a look at this article:
http://www.codeproject.com/KB/cpp/SyncMultithreadedMFC.aspx[^]

--
Arman

QuestionWaitForSingleObject and SetEvent Pin
laksh220427-Aug-08 20:36
Memberlaksh220427-Aug-08 20:36 
AnswerRe: WaitForSingleObject and SetEvent Pin
Roger Stoltz27-Aug-08 20:46
MemberRoger Stoltz27-Aug-08 20:46 
QuestionFTP client application Pin
anandi_codeproject27-Aug-08 20:23
Memberanandi_codeproject27-Aug-08 20:23 
AnswerRe: FTP client application Pin
Rathore Amit27-Aug-08 23:09
MemberRathore Amit27-Aug-08 23:09 
AnswerRe: FTP client application Pin
anandi_codeproject28-Aug-08 1:52
Memberanandi_codeproject28-Aug-08 1:52 
GeneralRe: FTP client application Pin
Rathore Amit28-Aug-08 17:24
MemberRathore Amit28-Aug-08 17:24 
AnswerRe: FTP client application Pin
Mark Salsbery28-Aug-08 6:06
MemberMark Salsbery28-Aug-08 6:06 
QuestionCListCtrl LVITEM lvItem problem Pin
Dhiraj kumar Saini27-Aug-08 19:31
MemberDhiraj kumar Saini27-Aug-08 19:31 
AnswerRe: CListCtrl LVITEM lvItem problem Pin
Nibu babu thomas27-Aug-08 19:39
MemberNibu babu thomas27-Aug-08 19:39 
AnswerRe: CListCtrl LVITEM lvItem problem Pin
Varghese Paul M27-Aug-08 20:14
MemberVarghese Paul M27-Aug-08 20:14 
GeneralRe: CListCtrl LVITEM lvItem problem Pin
Dhiraj kumar Saini27-Aug-08 20:40
MemberDhiraj kumar Saini27-Aug-08 20:40 
GeneralRe: CListCtrl LVITEM lvItem problem Pin
Nibu babu thomas27-Aug-08 20:48
MemberNibu babu thomas27-Aug-08 20:48 
GeneralRe: CListCtrl LVITEM lvItem problem Pin
Dhiraj kumar Saini27-Aug-08 20:52
MemberDhiraj kumar Saini27-Aug-08 20:52 
QuestionRe: CListCtrl LVITEM lvItem problem Pin
Varghese Paul M27-Aug-08 22:07
MemberVarghese Paul M27-Aug-08 22:07 
AnswerRe: CListCtrl LVITEM lvItem problem Pin
Dhiraj kumar Saini27-Aug-08 22:47
MemberDhiraj kumar Saini27-Aug-08 22:47 
QuestionRe: CListCtrl LVITEM lvItem problem Pin
David Crow28-Aug-08 3:52
MemberDavid Crow28-Aug-08 3:52 
Questionshortkeys inside propertypage Pin
hari_honey27-Aug-08 19:27
Memberhari_honey27-Aug-08 19:27 

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.