Click here to Skip to main content
15,925,399 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLoadLibrary using msvcr70 Pin
20-Apr-02 20:39
suss20-Apr-02 20:39 
GeneralRe: LoadLibrary using msvcr70 Pin
21-Apr-02 0:06
suss21-Apr-02 0:06 
GeneralRe: LoadLibrary using msvcr70 Pin
21-Apr-02 7:57
suss21-Apr-02 7:57 
QuestionHow put Wallpaper in to the View? Pin
20-Apr-02 19:05
suss20-Apr-02 19:05 
AnswerRe: How put Wallpaper in to the View? Pin
Mazdak20-Apr-02 19:14
Mazdak20-Apr-02 19:14 
AnswerRe: How put Wallpaper in to the View? Pin
Paul M Watt21-Apr-02 9:18
mentorPaul M Watt21-Apr-02 9:18 
Questionhow to terminate a thread from another thread Pin
Zell20-Apr-02 16:45
Zell20-Apr-02 16:45 
AnswerRe: how to terminate a thread from another thread Pin
Paul M Watt20-Apr-02 17:24
mentorPaul M Watt20-Apr-02 17:24 
How are you synchronizing between your two threads?

I would create an event and have the second thread periodically check for that event to be set, then terminate itself with a call to _endthread.

Or if you have a MessagePump, you could also send a message to that thread informing it that it should shut down. In order to send a message to another thread you need to use PostThreadMessage.

Good Luck



Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: how to terminate a thread from another thread Pin
Zell20-Apr-02 19:20
Zell20-Apr-02 19:20 
GeneralRe: how to terminate a thread from another thread Pin
Joaquín M López Muñoz21-Apr-02 1:30
Joaquín M López Muñoz21-Apr-02 1:30 
GeneralFocusing a CEdit Object in a Dialog On Startup :: MFC Pin
valikac20-Apr-02 14:50
valikac20-Apr-02 14:50 
GeneralRe: Focusing a CEdit Object in a Dialog On Startup :: MFC Pin
Shog920-Apr-02 15:20
sitebuilderShog920-Apr-02 15:20 
GeneralRe: Focusing a CEdit Object in a Dialog On Startup :: MFC Pin
Ravi Bhavnani20-Apr-02 15:35
professionalRavi Bhavnani20-Apr-02 15:35 
GeneralRe: Focusing a CEdit Object in a Dialog On Startup :: MFC Pin
valikac20-Apr-02 15:42
valikac20-Apr-02 15:42 
GeneralRe: Solution Pin
valikac20-Apr-02 22:43
valikac20-Apr-02 22:43 
QuestionHow can i make a Tear-off option Pin
MaTrIX2k220-Apr-02 14:49
MaTrIX2k220-Apr-02 14:49 
QuestionHow do I close a window? Pin
Sunny_leung20-Apr-02 13:31
Sunny_leung20-Apr-02 13:31 
AnswerRe: How do I close a window? Pin
Christian Graus20-Apr-02 13:45
protectorChristian Graus20-Apr-02 13:45 
AnswerRe: How do I close a window? Pin
Shog920-Apr-02 13:46
sitebuilderShog920-Apr-02 13:46 
GeneralLPNMTREEVIEW itemOld via MFC Pin
Sara Burns20-Apr-02 11:43
Sara Burns20-Apr-02 11:43 
GeneralRe: LPNMTREEVIEW itemOld via MFC Pin
Shog920-Apr-02 13:45
sitebuilderShog920-Apr-02 13:45 
GeneralA couple of questions... Pin
20-Apr-02 11:22
suss20-Apr-02 11:22 
GeneralRe: A couple of questions... Pin
Jack Handy20-Apr-02 11:43
Jack Handy20-Apr-02 11:43 
Generalinline? Pin
20-Apr-02 11:48
suss20-Apr-02 11:48 
GeneralRe: inline? Pin
Christian Graus20-Apr-02 11:53
protectorChristian Graus20-Apr-02 11:53 

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.