Click here to Skip to main content
16,004,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem with Microsoft Unicode layer on Windows 98 Pin
Pruthviraj11-Oct-04 19:06
Pruthviraj11-Oct-04 19:06 
Generaldynamic menus Pin
Tyrus18211-Oct-04 18:39
Tyrus18211-Oct-04 18:39 
GeneralRe: dynamic menus Pin
Roger Allen12-Oct-04 10:51
Roger Allen12-Oct-04 10:51 
QuestionHow can I Set Background color for a Static text ? Pin
King of Merit11-Oct-04 18:27
King of Merit11-Oct-04 18:27 
AnswerRe: How can I Set Background color for a Static text ? Pin
Sujan Christo11-Oct-04 18:35
Sujan Christo11-Oct-04 18:35 
AnswerRe: How can I Set Background color for a Static text ? Pin
Ravi Bhavnani12-Oct-04 4:03
professionalRavi Bhavnani12-Oct-04 4:03 
GeneralProb on Multi-Threaded Application Pin
Sujan Christo11-Oct-04 18:16
Sujan Christo11-Oct-04 18:16 
GeneralRe: Prob on Multi-Threaded Application Pin
Blake Miller12-Oct-04 5:17
Blake Miller12-Oct-04 5:17 
Are you using WaitForX (Single Object, MultipleObjects) or MsgWaitForX (same thing) at all? More than one critical section, leading to a deadlock situation?.

Otherwise, your applciaiton wants to exit, but one or more of your threads are still blocked waiting for a mutex, event, etc. You should design your threads to wait for MORE than one object, typically the processing object, and an event object you can 'set' from the main thread when the program is about to exit. Then when progrma is about to exit, it signals event for thread(s) to exit, waits for thread(s) to exit, and then the main program's thread can exit.

How do you detect that a thread has exited? The thread can set an event the main thread is waiting on, the thread can clear/set a variable the main thread can check, or main thread can wait for thread handle to be signaled. see documentaiton for _beginthreadex


GeneralWorking directory problem Pin
smbika11-Oct-04 16:52
smbika11-Oct-04 16:52 
GeneralRe: Working directory problem Pin
alex.barylski11-Oct-04 17:49
alex.barylski11-Oct-04 17:49 
GeneralRe: Working directory problem Pin
smbika12-Oct-04 1:54
smbika12-Oct-04 1:54 
GeneralRe: Working directory problem Pin
PJ Arends11-Oct-04 18:11
professionalPJ Arends11-Oct-04 18:11 
GeneralRe: Working directory problem Pin
smbika12-Oct-04 1:55
smbika12-Oct-04 1:55 
GeneralRe: Working directory problem Pin
BlackDice12-Oct-04 4:00
BlackDice12-Oct-04 4:00 
GeneralRe: Working directory problem Pin
smbika12-Oct-04 5:49
smbika12-Oct-04 5:49 
GeneralRichEditCtrl: How to use StreamIn and StreamOut RTF with bitmap info Pin
jackion3111-Oct-04 15:50
jackion3111-Oct-04 15:50 
GeneralRe: RichEditCtrl: How to use StreamIn and StreamOut RTF with bitmap info Pin
Jim Crafton12-Oct-04 5:22
Jim Crafton12-Oct-04 5:22 
GeneralPan/Tilt control guidline needed Pin
baboguru11-Oct-04 15:13
baboguru11-Oct-04 15:13 
Generalinput flow control Pin
Makutu11-Oct-04 14:54
Makutu11-Oct-04 14:54 
GeneralReal time monitoring Pin
jooo11-Oct-04 14:50
jooo11-Oct-04 14:50 
GeneralCListCtrl, OnBegintrack Pin
Vancouver11-Oct-04 14:06
Vancouver11-Oct-04 14:06 
GeneralRe: CListCtrl, OnBegintrack Pin
alex.barylski11-Oct-04 17:54
alex.barylski11-Oct-04 17:54 
GeneralRe: CListCtrl, OnBegintrack Pin
Vancouver11-Oct-04 18:43
Vancouver11-Oct-04 18:43 
GeneralRe: CListCtrl, OnBegintrack Pin
Adi Narayana11-Oct-04 23:48
Adi Narayana11-Oct-04 23:48 
GeneralRe: CListCtrl, OnBegintrack Pin
Vancouver11-Oct-04 19:35
Vancouver11-Oct-04 19: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.