Click here to Skip to main content
16,005,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Ending a Thead and retrieve the result in MFC Pin
Zac Howland31-Aug-06 5:22
Zac Howland31-Aug-06 5:22 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
manustone31-Aug-06 5:47
manustone31-Aug-06 5:47 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
Zac Howland31-Aug-06 6:24
Zac Howland31-Aug-06 6:24 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
manustone31-Aug-06 6:14
manustone31-Aug-06 6:14 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
Zac Howland31-Aug-06 6:27
Zac Howland31-Aug-06 6:27 
AnswerRe: Ending a Thead and retrieve the result in MFC Pin
Jun Du31-Aug-06 5:32
Jun Du31-Aug-06 5:32 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
manustone31-Aug-06 5:50
manustone31-Aug-06 5:50 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
Zac Howland31-Aug-06 6:29
Zac Howland31-Aug-06 6:29 
manustone wrote:
Zac just told me that there is a Win32 (not MFC) that does it. My intention was to wait an amount of time calling Sleep and stopping for a while the calling thread.


A couple things here: First, anytime you are calling Sleep, you really should rethink your design. That is one function that should almost never be called; especially as a thread synchronization technique. Second, you really should pick up "Programming Windows" by Charles Petzold and "Programming Windows with MFC" by Jeff Prosise. You are apparently under the impression that MFC is different than Win32 when in fact, MFC is nothing more than a thin wrapper around the Win32 API.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

GeneralRe: Ending a Thead and retrieve the result in MFC Pin
manustone31-Aug-06 6:41
manustone31-Aug-06 6:41 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
manustone31-Aug-06 6:10
manustone31-Aug-06 6:10 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
Jun Du31-Aug-06 6:56
Jun Du31-Aug-06 6:56 
QuestionOne More IV : Optimization Pin
Nawal K Gupta31-Aug-06 4:39
Nawal K Gupta31-Aug-06 4:39 
AnswerRe: One More IV : Optimization Pin
toxcct31-Aug-06 4:46
toxcct31-Aug-06 4:46 
AnswerRe: One More IV : Optimization Pin
Zac Howland31-Aug-06 4:54
Zac Howland31-Aug-06 4:54 
AnswerRe: One More IV : Optimization Pin
David Crow31-Aug-06 7:30
David Crow31-Aug-06 7:30 
AnswerRe: Clarification Pin
Nawal K Gupta31-Aug-06 19:39
Nawal K Gupta31-Aug-06 19:39 
GeneralRe: Clarification Pin
super_ttd1-Sep-06 23:05
super_ttd1-Sep-06 23:05 
QuestionThreading Interview Question Pin
Nawal K Gupta31-Aug-06 4:37
Nawal K Gupta31-Aug-06 4:37 
AnswerRe: Threading Interview Question Pin
Chris Losinger31-Aug-06 4:44
professionalChris Losinger31-Aug-06 4:44 
GeneralRe: Clarification Pin
Nawal K Gupta31-Aug-06 19:37
Nawal K Gupta31-Aug-06 19:37 
AnswerRe: Threading Interview Question Pin
Zac Howland31-Aug-06 4:49
Zac Howland31-Aug-06 4:49 
AnswerRe: Threading Interview Question Pin
Cedric Moonen31-Aug-06 4:53
Cedric Moonen31-Aug-06 4:53 
GeneralRe: Threading Interview Question Pin
toxcct31-Aug-06 5:29
toxcct31-Aug-06 5:29 
AnswerRe: Clarification Pin
Nawal K Gupta31-Aug-06 19:40
Nawal K Gupta31-Aug-06 19:40 
QuestionGenerating GUID Pin
<color>Aljechin 31-Aug-06 4:30
<color>Aljechin 31-Aug-06 4:30 

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.