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

C / C++ / MFC

 
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 
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 
Eugen Podsypalnikov wrote:
Wow, I did not know it !
Thank you very much, Roger !


Smile | :) You're most welcome.


Eugen Podsypalnikov wrote:
As possible "workaround"
could be also the usage of a limitation function:
bool CYourDialog::IsWorking() {
  return m_bWorking;
}


Naah, I wouldn't count on that. This also depends on your optimization settings... Wink | ;)
There's a compiler switch that tells the compiler to expand "any suitable" function as inline, which would generate the same code as if you would have referenced the variable directly even though you haven't declared the function explicitly as inline. Then you would be back to square one, with the possibility that the variable could 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: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 
GeneralRe: How to extract the bitmap (HBITMAP) from a BITMAPINFOHEADER variable? Pin
Chris Losinger31-Mar-10 9:46
professionalChris Losinger31-Mar-10 9:46 
GeneralRe: How to extract the bitmap (HBITMAP) from a BITMAPINFOHEADER variable? Pin
bioan31-Mar-10 9:58
professionalbioan31-Mar-10 9:58 

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.