Click here to Skip to main content
15,889,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How about BSCMAKE: error BK1505 ?? Pin
Eugen Podsypalnikov31-Mar-10 21:21
Eugen Podsypalnikov31-Mar-10 21:21 
GeneralRe: How about BSCMAKE: error BK1505 ?? Pin
wangningyu31-Mar-10 21:54
wangningyu31-Mar-10 21:54 
QuestionMultithreading using AfxBeginThread Pin
kartikthakre31-Mar-10 7:32
kartikthakre31-Mar-10 7:32 
QuestionRe: Multithreading using AfxBeginThread Pin
David Crow31-Mar-10 7:53
David Crow31-Mar-10 7:53 
AnswerRe: Multithreading using AfxBeginThread Pin
kartikthakre1-Apr-10 7:19
kartikthakre1-Apr-10 7:19 
AnswerRe: Multithreading using AfxBeginThread Pin
David Crow1-Apr-10 7:48
David Crow1-Apr-10 7:48 
AnswerRe: Multithreading using AfxBeginThread [modified] Pin
Eugen Podsypalnikov31-Mar-10 19:58
Eugen Podsypalnikov31-Mar-10 19:58 
GeneralRe: Multithreading using AfxBeginThread Pin
Roger Stoltz31-Mar-10 21:54
Roger Stoltz31-Mar-10 21:54 
Perhaps it's just a typo, but if not you should be aware of the following:

There's a big risk the thread will never exit as you've failed to declare the m_bWorking variable as volatile.
It depends on your optimization settings.

The compiler may choose to hold the variable in a register in the while-loop, not reading it from its actual memory location since it's not being modified in the while-loop.
Declaring it as volatile will tell the compiler that the variable must be read from its memory location and cannot be optimized into a register.

"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


GeneralRe: Multithreading using AfxBeginThread Pin
Eugen Podsypalnikov31-Mar-10 22:03
Eugen Podsypalnikov31-Mar-10 22:03 
GeneralRe: Multithreading using AfxBeginThread Pin
Roger Stoltz31-Mar-10 22:23
Roger Stoltz31-Mar-10 22:23 
GeneralRe: Multithreading using AfxBeginThread Pin
Eugen Podsypalnikov31-Mar-10 22:39
Eugen Podsypalnikov31-Mar-10 22:39 
QuestionRe: Multithreading using AfxBeginThread Pin
David Crow1-Apr-10 5:30
David Crow1-Apr-10 5:30 
AnswerRe: Multithreading using AfxBeginThread Pin
Eugen Podsypalnikov1-Apr-10 5:39
Eugen Podsypalnikov1-Apr-10 5:39 
GeneralRe: Multithreading using AfxBeginThread Pin
kartikthakre1-Apr-10 7:17
kartikthakre1-Apr-10 7:17 
AnswerRe: Multithreading using AfxBeginThread Pin
David Crow1-Apr-10 7:53
David Crow1-Apr-10 7:53 
GeneralRe: Multithreading using AfxBeginThread Pin
kartikthakre2-Apr-10 3:54
kartikthakre2-Apr-10 3:54 
QuestionHow to extract the bitmap (HBITMAP) from a BITMAPINFOHEADER variable? Pin
bioan31-Mar-10 7:10
professionalbioan31-Mar-10 7:10 
AnswerRe: How to extract the bitmap (HBITMAP) from a BITMAPINFOHEADER variable? Pin
Chris Losinger31-Mar-10 7:31
professionalChris Losinger31-Mar-10 7:31 
GeneralRe: How to extract the bitmap (HBITMAP) from a BITMAPINFOHEADER variable? Pin
bioan31-Mar-10 7:58
professionalbioan31-Mar-10 7:58 
GeneralRe: How to extract the bitmap (HBITMAP) from a BITMAPINFOHEADER variable? Pin
Chris Losinger31-Mar-10 8:06
professionalChris Losinger31-Mar-10 8:06 
GeneralRe: How to extract the bitmap (HBITMAP) from a BITMAPINFOHEADER variable? Pin
bioan31-Mar-10 8:23
professionalbioan31-Mar-10 8:23 
GeneralRe: How to extract the bitmap (HBITMAP) from a BITMAPINFOHEADER variable? Pin
Chris Losinger31-Mar-10 8:30
professionalChris Losinger31-Mar-10 8:30 
GeneralRe: How to extract the bitmap (HBITMAP) from a BITMAPINFOHEADER variable? Pin
bioan31-Mar-10 8:39
professionalbioan31-Mar-10 8:39 
GeneralRe: How to extract the bitmap (HBITMAP) from a BITMAPINFOHEADER variable? Pin
Chris Losinger31-Mar-10 9:08
professionalChris Losinger31-Mar-10 9:08 
GeneralRe: How to extract the bitmap (HBITMAP) from a BITMAPINFOHEADER variable? Pin
bioan31-Mar-10 9:38
professionalbioan31-Mar-10 9:38 

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.