Click here to Skip to main content
16,013,605 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MessageBox Question Pin
sriram_mr2-Apr-02 4:34
sriram_mr2-Apr-02 4:34 
GeneralRe: MessageBox Question Pin
Jeremy Falcon2-Apr-02 5:11
professionalJeremy Falcon2-Apr-02 5:11 
GeneralThere is a very simple solution.. Pin
SeNs2-Apr-02 8:56
SeNs2-Apr-02 8:56 
GeneralOFNHookProc Pin
Anthony98872-Apr-02 4:07
Anthony98872-Apr-02 4:07 
GeneralDialogs in MDI app have gray titlebar Pin
Jack Handy2-Apr-02 3:55
Jack Handy2-Apr-02 3:55 
GeneralRe: Dialogs in MDI app have gray titlebar Pin
dlhson2-Apr-02 5:50
dlhson2-Apr-02 5:50 
GeneralRe: Dialogs in MDI app have gray titlebar Pin
Jack Handy2-Apr-02 11:21
Jack Handy2-Apr-02 11:21 
GeneralMainFrame variabel access in worker thread Pin
Merle Pittman2-Apr-02 3:16
Merle Pittman2-Apr-02 3:16 
I have variables (bools) as member variables in the MainFrame class that I use to keep track of which view is currently active and update menus and such accordingly.

The problem is I need to access one of the view-status variables in a worker thread to determine the correct action that should be taken (buffer data, or output data). I am currently trying to access the MainFrame member like this:
CMainFrame *pMF = (CMainFrame*)::AfxGetMainWnd();
bool bBufferData = pMF->m_bTempDepthCPSView;

However, its causing an access violation. I assume because the AfxGetMainWnd() function cannot return the proper pointer to MainFrame since it is called inside a global worker thread.

Does anyone have a suggestion to get around this??

Thanks
GeneralRe: MainFrame variabel access in worker thread Pin
lucy2-Apr-02 6:40
lucy2-Apr-02 6:40 
GeneralRe: MainFrame variabel access in worker thread Pin
Alexandru Savescu2-Apr-02 20:38
Alexandru Savescu2-Apr-02 20:38 
GeneralMSFlexGrid causing a crash Pin
Chris Klecker2-Apr-02 2:39
Chris Klecker2-Apr-02 2:39 
QuestionHow to set an event multiple times in multithreading Pin
Bhikshapathi Gorantla2-Apr-02 2:36
Bhikshapathi Gorantla2-Apr-02 2:36 
AnswerRe: How to set an event multiple times in multithreading Pin
Joaquín M López Muñoz2-Apr-02 5:30
Joaquín M López Muñoz2-Apr-02 5:30 
GeneralRe: How to set an event multiple times in multithreading Pin
Bhikshapathi Gorantla2-Apr-02 19:30
Bhikshapathi Gorantla2-Apr-02 19:30 
GeneralRe: How to set an event multiple times in multithreading Pin
Neville Franks2-Apr-02 20:05
Neville Franks2-Apr-02 20:05 
GeneralRe: How to set an event multiple times in multithreading Pin
Joaquín M López Muñoz2-Apr-02 20:28
Joaquín M López Muñoz2-Apr-02 20:28 
QuestionSTL::map, how to prevent use of temporary object? Pin
vmaltsev2-Apr-02 1:10
vmaltsev2-Apr-02 1:10 
AnswerRe: STL::map, how to prevent use of temporary object? Pin
Giles2-Apr-02 1:16
Giles2-Apr-02 1:16 
AnswerRe: STL::map, how to prevent use of temporary object? Pin
Joaquín M López Muñoz2-Apr-02 2:15
Joaquín M López Muñoz2-Apr-02 2:15 
AnswerRe: STL::map, how to prevent use of temporary object? Pin
Christian Graus2-Apr-02 9:35
protectorChristian Graus2-Apr-02 9:35 
GeneralRe: STL::map, how to prevent use of temporary object? Pin
vmaltsev2-Apr-02 23:03
vmaltsev2-Apr-02 23:03 
GeneralRe: STL::map, how to prevent use of temporary object? Pin
Joaquín M López Muñoz3-Apr-02 7:35
Joaquín M López Muñoz3-Apr-02 7:35 
GeneralConverts TCHAR to Managed String Pin
Ignacio Varas2-Apr-02 0:03
Ignacio Varas2-Apr-02 0:03 
GeneralRe: Converts TCHAR to Managed String Pin
2-Apr-02 2:31
suss2-Apr-02 2:31 
GeneralRe: Converts TCHAR to Managed String Pin
Le centriste2-Apr-02 6:44
Le centriste2-Apr-02 6:44 

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.