Click here to Skip to main content
15,920,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Icon display troubles Pin
Brigg Thorp29-Jan-03 6:56
Brigg Thorp29-Jan-03 6:56 
GeneralRe: Icon display troubles Pin
Shog929-Jan-03 12:16
sitebuilderShog929-Jan-03 12:16 
GeneralOpenFile API Pin
Anthony988729-Jan-03 4:51
Anthony988729-Jan-03 4:51 
GeneralRe: OpenFile API Pin
Nitron29-Jan-03 6:11
Nitron29-Jan-03 6:11 
Generalshutdown and SO_LINGER Pin
Kerry Chou29-Jan-03 4:36
Kerry Chou29-Jan-03 4:36 
GeneralRe: shutdown and SO_LINGER Pin
Mike Nordell30-Jan-03 21:33
Mike Nordell30-Jan-03 21:33 
GeneralCOM worker thread issue Pin
Shah Shehpori29-Jan-03 4:16
sussShah Shehpori29-Jan-03 4:16 
GeneralRe: COM worker thread issue Pin
Alvaro Mendez29-Jan-03 4:50
Alvaro Mendez29-Jan-03 4:50 
If your main thread gets blocked until the worker thread finishes, then I don't see the point of the worker thread. Just put it all on the same thread.

As far as ways of communicating, here's one: create an Event (see CreateEvent or CEvent)in the main thread and pass it to the worker thread. When it's finished, have it signal the event (SetEvent). In the mean time the main thread will be blocked until the event is signaled (WaitForSingleObject). Once that occurs, it will know that it's time to fire the control's event.

Regards,
Alvaro


All you need in this life is ignorance and confidence, and then success is sure. -- Mark Twain
GeneralCould not create a ListBox in CView. Pin
Kefir29-Jan-03 4:16
Kefir29-Jan-03 4:16 
GeneralRe: Could not create a ListBox in CView. Pin
Roger Allen29-Jan-03 4:30
Roger Allen29-Jan-03 4:30 
GeneralRe: Could not create a ListBox in CView. Pin
Kefir29-Jan-03 4:40
Kefir29-Jan-03 4:40 
GeneralRe: Could not create a ListBox in CView. Pin
Roger Allen29-Jan-03 6:21
Roger Allen29-Jan-03 6:21 
GeneralRe: Could not create a ListBox in CView. Pin
Kefir29-Jan-03 7:32
Kefir29-Jan-03 7:32 
GeneralRe: Could not create a ListBox in CView. Pin
SUPER_ZORRO31-Jan-03 0:47
SUPER_ZORRO31-Jan-03 0:47 
General"A Network cable is unplugged" Pin
Bateman29-Jan-03 2:46
Bateman29-Jan-03 2:46 
GeneralResinign the formview with controls in it on system resolution change Pin
sulaxan29-Jan-03 2:36
sulaxan29-Jan-03 2:36 
GeneralDES Encryption Pin
Zaid Ansari29-Jan-03 2:06
Zaid Ansari29-Jan-03 2:06 
GeneralRe: DES Encryption Pin
Chris Losinger29-Jan-03 5:47
professionalChris Losinger29-Jan-03 5:47 
QuestionDo disabled buttons buffer the no of clicks -?? Pin
Ind29-Jan-03 2:04
Ind29-Jan-03 2:04 
AnswerRe: Do disabled buttons buffer the no of clicks -?? Pin
Roger Allen29-Jan-03 3:10
Roger Allen29-Jan-03 3:10 
GeneralRe: Do disabled buttons buffer the no of clicks -?? Pin
Ind31-Jan-03 3:27
Ind31-Jan-03 3:27 
General[WinInet] Retrieving error info from FTP Pin
Marcelo N. Magri29-Jan-03 1:07
Marcelo N. Magri29-Jan-03 1:07 
GeneralRe: [WinInet] Retrieving error info from FTP Pin
Ben Burnett29-Jan-03 10:46
Ben Burnett29-Jan-03 10:46 
Generalpassing CArray in functions Pin
r i s h a b h s29-Jan-03 0:02
r i s h a b h s29-Jan-03 0:02 
GeneralRe: passing CArray in functions Pin
jhwurmbach29-Jan-03 1:33
jhwurmbach29-Jan-03 1:33 

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.