FIX: ?????? ???? ?? MSDAER.DLL ?? _com_error ?????????

?????? ????????? ?????? ?????????
???? ???????: 173645 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

???????

??? ??????? ???? #import ?????? ??????? ??????? ADO, ?? ???? OLE DB 1.1 ODBC ? ????????? _com_error ????? ????? ? ???? ??? ?? ???? ?? MSDAER.DLL ??? ????? ?????.

?????

???? ????? ?? ??????? ?????? #import ??? ??????? _com_error. ??? ??? ???? ????????? ??? ???? Release() ??? ?????? IErrorInfo ???? ??? ?????? ?? GetErrorInfo(). ???? ??? ?????? ??? ????? ?? ???? ODBC OLEDB stranded ???? ???? ??? ???? ???? ????? ????? ????? ???????.

????

????? ????? ???? ???? ???????? Release() ??????? IErrorInfo ?? ????? ???? "??????". ??? ???? ??????:
   #define BUGFIX_RELEASE_IERRORINFO(error) \ 
           IErrorInfo * pErr = error.ErrorInfo();  \ 
           pErr->Release();                        \ 
           pErr->Release();
				
??? ???? ?? ????? ?? ????????:
   try
   {
     //.... call a #import generated method
     if ( m_connection == NULL )   {
      if(S_OK == m_connection.CreateInstance("ADODB.Connection.1", NULL,
   CLSCTX_INPROC_SERVER))
         m_connection->Open(varDataSource, varUserId, varPwd);
      }
   }
   catch(_com_error & err)
   {
     // Error handling code...
     ::MessageBox(NULL, (LPCSTR)err.Description(), _T("ADO Error"), MB_OK);

     BUGFIX_RELEASE_IERRORINFO(err);
   }
				

?????

???? Microsoft ?? ???? ??? ?? ?????? Microsoft ??????? ?? ????? ??? ??????? ???. ?? ????? ??? ??????? ?? Visual Studio 97 Service Pack 3 ? Visual C++ ??????? 6.0.

????? ?? ?????????? ?????? ?????? ??????? ??????? ?? "????? ??????? ?? Microsoft:
170365INFO: Visual Studio 97 ??? ??????? - ?? ? ??? ? ?????

???????

???? ???????: 173645 - ????? ??? ??????: 14/???? ??????/1435 - ??????: 1.0
????? ???
  • Microsoft Visual C++ 5.0 Enterprise Edition
????? ??????: 
kbnosurvey kbarchive kbmt kbbug kbfix kbvc600fix kbvs97sp2fix KB173645 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????173645

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

 

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