MDIGetActive() - always fails (!?!)
-
Any attempt to call MDIGetActive() in my CMDIFrameWnd derieved class fails (program crashes, no asserts reported). Some details: -app created with MFC app wizard (MDI application) -I launch the application, press Ctrl+N to create a single MDI Child window and then select an option from menu that opens a dialog window. -this dialog needs some data from active MDI child so i call GetProblemData member function from CMainFrame class. -GetProblem data member function crashes when it calls MDIGetActive() (although at least one child frame is opened) -No other actions are taken at that moment, just placing a simple call to MDIGetActive() fails. Any ideas? Thanks in advance. Railgun is like a Gilette Mach 3 - it does the job with one, easy stroke.