Click here to Skip to main content
15,900,589 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
Stephen Hewitt21-Jul-08 20:01
Stephen Hewitt21-Jul-08 20:01 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
Joe Woodbury21-Jul-08 20:08
professionalJoe Woodbury21-Jul-08 20:08 
Questionquestion about a MKV block. Pin
kcynic21-Jul-08 13:51
kcynic21-Jul-08 13:51 
AnswerRe: question about a MKV block. Pin
yuanfen13922-Jul-08 20:42
yuanfen13922-Jul-08 20:42 
GeneralRe: question about a MKV block. Pin
kcynic22-Jul-08 21:27
kcynic22-Jul-08 21:27 
GeneralRe: question about a MKV block. Pin
yuanfen13923-Jul-08 0:16
yuanfen13923-Jul-08 0:16 
GeneralRe: question about a MKV block. Pin
kcynic23-Jul-08 2:00
kcynic23-Jul-08 2:00 
QuestionCWinThread - How to ask is still running? Pin
x87Bliss21-Jul-08 13:45
x87Bliss21-Jul-08 13:45 
My progress dialog creates a worker thread using AfxBeginThread.

When the user clicks cancel, I don't want the window to close if the thread is still running. I want to have the thread safely finish first.

There is a BOOL variable that the worker thread checks on occasion while running. If this is true, it begins to cancel. The worker thread only reads this variable, the Progress Dialog writes to it if needed. Should the worker thread be suspended before this variable is written? Or will it be OK since they will never Write at the same time.

Secondly, and most importantly, I currently have the Worker Thread Post a WM_USER message, with certain WPARAM and LPARAM for the reason, when it has ended. Is there any other way to check if the thread is running or not, and what the controlling function's return value was?

Thanks
AnswerRe: CWinThread - How to ask is still running? Pin
Joe Woodbury21-Jul-08 19:34
professionalJoe Woodbury21-Jul-08 19:34 
AnswerRe: CWinThread - How to ask is still running? Pin
sudhir_Kumar21-Jul-08 20:00
sudhir_Kumar21-Jul-08 20:00 
GeneralRe: CWinThread - How to ask is still running? Pin
Joe Woodbury21-Jul-08 20:26
professionalJoe Woodbury21-Jul-08 20:26 
Questionpolymorphism question - child pointer to parent class Pin
zecodela21-Jul-08 12:59
zecodela21-Jul-08 12:59 
AnswerRe: polymorphism question - child pointer to parent class Pin
Stephen Hewitt21-Jul-08 13:58
Stephen Hewitt21-Jul-08 13:58 
GeneralRe: polymorphism question - child pointer to parent class Pin
zecodela21-Jul-08 15:04
zecodela21-Jul-08 15:04 
GeneralRe: polymorphism question - child pointer to parent class Pin
Stephen Hewitt21-Jul-08 15:25
Stephen Hewitt21-Jul-08 15:25 
QuestionHow do you convert a CString to a char *? Pin
Markus C21-Jul-08 12:31
Markus C21-Jul-08 12:31 
AnswerRe: How do you convert a CString to a char *? Pin
Garth J Lancaster21-Jul-08 16:32
professionalGarth J Lancaster21-Jul-08 16:32 
AnswerRe: How do you convert a CString to a char *? Pin
kDevloper21-Jul-08 19:04
kDevloper21-Jul-08 19:04 
GeneralRe: How do you convert a CString to a char *? Pin
CPallini21-Jul-08 21:17
mveCPallini21-Jul-08 21:17 
GeneralRe: How do you convert a CString to a char *? Pin
kDevloper22-Jul-08 0:41
kDevloper22-Jul-08 0:41 
GeneralRe: How do you convert a CString to a char *? Pin
CPallini22-Jul-08 5:02
mveCPallini22-Jul-08 5:02 
AnswerRe: How do you convert a CString to a char *? Pin
Michael Dunn22-Jul-08 13:43
sitebuilderMichael Dunn22-Jul-08 13:43 
Questionneed to access the dictionary installed in word pad or MSword.olb to create a word game utilizing c++ Pin
DB Ed21-Jul-08 12:12
DB Ed21-Jul-08 12:12 
QuestionIs it possible to attach another apps' window DC? (About Gdi handle table and objects) Pin
sawerr21-Jul-08 9:05
sawerr21-Jul-08 9:05 
AnswerRe: Is it possible to attach another apps' window DC? (About Gdi handle table and objects) Pin
CPallini21-Jul-08 9:25
mveCPallini21-Jul-08 9:25 

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.