FIX: ????? ?? 215 ?? Appui1.cpp ?? ????? MFC SDI/MDI

?????? ????????? ?????? ?????????
???? ???????: 193102 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

?? ??? ??????

???????

??? ?????? ??? ???? ????? ???? ????? ??? ???? ???? ?? ????? ??? ?? ????? MFC SDI/MDI ??? ?? ?????? ???? ?????? ?? ????? ????? ??? ??? ???? ????? ?? ????? ??????? ?? CCmdTarget::GetRoutingFrame_() (??? Appui1.cpp: 215) ?? ??????? ????.

?? ??? ????? ??????? ?? ????? ???????? ????? ???????? ??????? ??? ?????. ??? ???? ??? ????? ?????? ??? ??? ?????? ????? MFC ?? 5.0 Visual C++ Visual 6.0 C++ (???? ??? ????????? ??????? Visual C++ DLL MFC MFC42.dll).

?????

?????? ???????? ????? ???? ??? ???????? ?????? ??????? (m_pRoutingFrame) ?? ???? ???? ??????? ???? ??? ?????? ?? GetSafeOwner(). ???? ??????? ?? CFrameWnd ????? ??? ??? ??? ?????? ??????? ???? ???? ??????? ?????? ??? ?? ??? ????? ???? ???? ??????? ???? ??? ???????.

????

????? ???? ???? ??????? ?????? ??????? ?????? ??? NULL ?? destructor ????? CFrameWnd ?????? ???? ??? ?????:

CMyFrameWnd::~CMyFrameWnd()
   {

      if( AfxGetThreadState()->m_pRoutingFrame == this )
      {
         AfxGetThreadState()->m_pRoutingFrame = NULL;
      }
   }
				

?????

???? Microsoft ?? ???? ??? ?? ?????? Microsoft ??????? ?? ????? ??? ??????? ???. ?? ????? ??? ??????? ?? Visual Studio 6.0 ?????? ????? ?????? Service Pack 1.

?????? ??? ???? ?????? ???, ?????? ??????:
http://msdn2.microsoft.com/en-us/vstudio/Aa718362.aspx

??????? ????

???? ?? ???? ???????? ?????? MFC ??? ??????? ?? ????? CFrameWnd ? CMDIFrameWnd ? CMDIChildWnd COleIPFrameWnd.

?????? ????? MFC ????????:
  • ??????
  • CPropertySheet
  • ???? ??????? OLE OleObject::DoVerb(OLEIVERB_PROPERTIES) ???? ?? ???????? ???? [ASCII 150]
  • COleBusyDialog
  • ???? ????? [??????? ???? AfxMessageBox()]
  • ???? ????? MAPI [??? ??????? MAPISendMail()]
  • ???? ?????? ????? ?????? ????? SQL [??? ??????? SQLDriverConnect()]

????? ????? ????? ??????

  1. ??????? AppWizard ?????? exe MFC ??? ????? ????? ??? MDI.
  2. ??????? ClassWizard ?????? OnCloseDocument ??? CDocument ???? ?? ??????? ?????? AppWizard.
  3. ????? ?????? ????? OnCloseDocument ??? ?? ???? ???:
          void CMyDoc::OnCloseDocument()
          {
             CDocument::OnCloseDocument();
             AfxMessageBox("The Document is Closed");
          }
    					
  4. ?????? ??????? ???????.
  5. ?? ??????? ???? ???? ??? "?????".
?????: ???? ????? ??????:
"??? ????? ???????! ?????: ??? Appui1.cpp: 215 ".
?????? ??? ??????? ?? ???? ???????? ????? ?? ?????? ???????? ???????? ??????? ?? destructor ?? CChildFrame:

CChildFrame::~CChildFrame()
   {

      if( AfxGetThreadState()->m_pRoutingFrame == this )
      {
         AfxGetThreadState()->m_pRoutingFrame = NULL;
      }
   }
				


(?) 1998 ???? Microsoft ? ???? ???? ?????. ????????? ?????? Bret Bentzinger Microsoft

?????

????? ?? ????????? ??? ??? ?????? Visual Studio ???? ??? ????? ???????? ??????? ?????? ?? "????? ??????? ?? Microsoft:
194022???? Visual Studio 6.0 ???? ??, ??? ?????
194295????? ????? ????? ???? ???? Visual Studio
193009INFO: Visual Studio 6.0 ?????? ????? ?????? Service Pack 1 ????????

???????

???? ???????: 193102 - ????? ??? ??????: 24/???? ??????/1435 - ??????: 4.2
????? ???
  • Microsoft Foundation Class Library 4.2, ????? ?????? ??:
    • Microsoft Visual C++ 6.0 Enterprise Edition
    • Microsoft Visual C++ 6.0 Professional Edition
    • Microsoft Visual C++, 32-bit Learning Edition 6.0
????? ??????: 
kbnosurvey kbarchive kbmt kbqfe kbbug kbdocview kbfix kbvc600sp1fix kbvs600sp1fix kbvs600sp2fix KB193102 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????193102

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com