Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Function Pointers in OOP Pin
valikac6-Jan-03 16:07
valikac6-Jan-03 16:07 
GeneralRe: Function Pointers in OOP Pin
tilli again7-Jan-03 8:43
susstilli again7-Jan-03 8:43 
GeneralRe: Function Pointers in OOP Pin
tilli again8-Jan-03 8:18
susstilli again8-Jan-03 8:18 
QuestionTree Control Check Boxes... ??? Pin
work_to_live6-Jan-03 9:31
work_to_live6-Jan-03 9:31 
AnswerRe: Tree Control Check Boxes... ??? Pin
work_to_live6-Jan-03 9:51
work_to_live6-Jan-03 9:51 
QuestionSynchronization.. do I need? Pin
Subrahmanyam6-Jan-03 9:15
Subrahmanyam6-Jan-03 9:15 
AnswerRe: Synchronization.. do I need? Pin
Tim Smith6-Jan-03 10:17
Tim Smith6-Jan-03 10:17 
AnswerRe: Synchronization.. do I need? Pin
Chris Losinger6-Jan-03 10:59
professionalChris Losinger6-Jan-03 10:59 
you might not need SingleLock, etc.. but if there's a chance you could end up going through the same function twice at the same time (especially if you're doing message pumping) you might need to use a flag at the top of any functions where this could be dangerous.

bool g_alreadyInFuncA = false;

void funcA()
{
  if (g_alreadyInFuncA)
  {
    error? return early? crash?
  }

  g_alreadyInFuncA = true;

  blah 
  blah
  MessagePump...
  blah
  g_alreadyInFuncA = false;
}

void OnMyMessage()
{
 funcA()
}


-c



I'm not the droid you're looking for.

QuestionDebugging Mutexes? Pin
clintsinger6-Jan-03 8:09
clintsinger6-Jan-03 8:09 
AnswerRe: Debugging Mutexes? Pin
Tim Smith6-Jan-03 8:39
Tim Smith6-Jan-03 8:39 
GeneralRe: Debugging Mutexes? Pin
clintsinger6-Jan-03 8:47
clintsinger6-Jan-03 8:47 
GeneralRe: Debugging Mutexes? Pin
Tim Smith6-Jan-03 10:16
Tim Smith6-Jan-03 10:16 
GeneralRe: Debugging Mutexes? Pin
clintsinger9-Jan-03 7:42
clintsinger9-Jan-03 7:42 
GeneralLocalization issue Pin
Nish Nishant6-Jan-03 7:30
sitebuilderNish Nishant6-Jan-03 7:30 
GeneralRe: Localization issue Pin
Maximilien6-Jan-03 7:34
Maximilien6-Jan-03 7:34 
GeneralRe: Localization issue Pin
Nish Nishant6-Jan-03 7:47
sitebuilderNish Nishant6-Jan-03 7:47 
GeneralRe: Localization issue Pin
nde_plume6-Jan-03 8:32
nde_plume6-Jan-03 8:32 
GeneralRe: Localization issue Pin
Nish Nishant6-Jan-03 8:44
sitebuilderNish Nishant6-Jan-03 8:44 
GeneralOutlook, peer connectivity Pin
georgebrennan6-Jan-03 7:29
georgebrennan6-Jan-03 7:29 
GeneralControl Dialogs From Main Document! Pin
Ehsan Baghaki6-Jan-03 7:24
Ehsan Baghaki6-Jan-03 7:24 
GeneralRe: Control Dialogs From Main Document! Pin
Anonymous6-Jan-03 10:24
Anonymous6-Jan-03 10:24 
QuestionHow can I print a tilted triangle, looks like |> squished together? Pin
DanYELL6-Jan-03 7:17
DanYELL6-Jan-03 7:17 
AnswerRe: How can I print a tilted triangle, looks like |> squished together? Pin
Chris Losinger6-Jan-03 11:01
professionalChris Losinger6-Jan-03 11:01 
GeneralRe: How can I print a tilted triangle, looks like |> squished together? Pin
DanYELL7-Jan-03 7:15
DanYELL7-Jan-03 7:15 
Generalthreads, ui Pin
Member 56966976-Jan-03 7:11
Member 56966976-Jan-03 7:11 

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.