Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog Background Pin
Daniel Strigl6-Apr-03 1:50
Daniel Strigl6-Apr-03 1:50 
QuestionHow to create B&W bmp's from binary data... Pin
sandbird6-Apr-03 0:45
sandbird6-Apr-03 0:45 
AnswerRe: How to create B&W bmp's from binary data... Pin
Heiko20036-Apr-03 3:14
sussHeiko20036-Apr-03 3:14 
GeneralRe: How to create B&W bmp's from binary data... Pin
sandbird8-Apr-03 6:55
sandbird8-Apr-03 6:55 
GeneralQuestion about void pointer and pointer to a function. Pin
George25-Apr-03 22:06
George25-Apr-03 22:06 
GeneralRe: Question about void pointer and pointer to a function. Pin
Nitron6-Apr-03 14:18
Nitron6-Apr-03 14:18 
GeneralRe: Question about void pointer and pointer to a function. Pin
George26-Apr-03 15:17
George26-Apr-03 15:17 
GeneralQuestion about static variable in multi threads environment. Pin
George25-Apr-03 19:02
George25-Apr-03 19:02 
Hi, everyone!


Suppose there is a static variable in a function, for example,

--------
void FunA()
{
static int a = 1;
if (1 == a)
{
//do operation 1
a = 0;
}

return;
}
--------

The above function FunA is called in a multi thread environment.
I mean each thread calls this function many times.

I think *operation 1* will only be done at the first time when
the FunA is called by a thread. After that, *operation 1*
will not be invoked by other threads.

Am I correct?


Thanks in advance,
George
GeneralRe: Question about static variable in multi threads environment. Pin
Michael Dunn5-Apr-03 19:09
sitebuilderMichael Dunn5-Apr-03 19:09 
GeneralRe: Question about static variable in multi threads environment. Pin
George25-Apr-03 19:17
George25-Apr-03 19:17 
GeneralRe: Question about static variable in multi threads environment. Pin
Anders Molin6-Apr-03 3:04
professionalAnders Molin6-Apr-03 3:04 
GeneralRe: Question about static variable in multi threads environment. Pin
George26-Apr-03 3:12
George26-Apr-03 3:12 
QuestionHow to get the data bits from Image class (GDI+) Pin
Tossporn5-Apr-03 18:40
Tossporn5-Apr-03 18:40 
AnswerRe: How to get the data bits from Image class (GDI+) Pin
J. Dunlap5-Apr-03 18:46
J. Dunlap5-Apr-03 18:46 
Generalhelp with DirectX Pin
Steven M Hunt5-Apr-03 16:50
Steven M Hunt5-Apr-03 16:50 
GeneralRe: help with DirectX Pin
Philip Patrick6-Apr-03 1:43
professionalPhilip Patrick6-Apr-03 1:43 
GeneralI Fixed It! Pin
Steven M Hunt6-Apr-03 11:21
Steven M Hunt6-Apr-03 11:21 
QuestionMaking a large bitmap fit in a CDialog or CFormView? Pin
DanYELL5-Apr-03 16:24
DanYELL5-Apr-03 16:24 
AnswerRe: Making a large bitmap fit in a CDialog or CFormView? Pin
Philip Patrick6-Apr-03 1:48
professionalPhilip Patrick6-Apr-03 1:48 
GeneralOdd behavoir of ::EnumChildWindows Pin
Abin5-Apr-03 14:18
Abin5-Apr-03 14:18 
GeneralRe: Odd behavoir of ::EnumChildWindows Pin
Nish Nishant5-Apr-03 14:30
sitebuilderNish Nishant5-Apr-03 14:30 
GeneralRe: Odd behavoir of ::EnumChildWindows Pin
PJ Arends6-Apr-03 4:40
professionalPJ Arends6-Apr-03 4:40 
GeneralOK, I found out the reason. Pin
Abin6-Apr-03 13:31
Abin6-Apr-03 13:31 
QuestionHow can I load a picture (jpg or bmp) into Picture Property with VC++? Pin
ATC5-Apr-03 14:05
ATC5-Apr-03 14:05 
AnswerRe: How can I load a picture (jpg or bmp) into Picture Property with VC++? Pin
Heiko20036-Apr-03 3:22
sussHeiko20036-Apr-03 3:22 

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.