????? ?????? ????? ??? ??????? ?? ActiveX Script Host

?????? ????????? ?????? ?????????
???? ???????: 232394 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
?????? ????? Microsoft Visual C++ 2005 ? Microsoft Visual C++ .NET 2003 Microsoft Visual C++ .NET 2002 ?? ????? ????????? ???????? ??????? ???? ?? ??????? ?? ??? Microsoft .NET Framework ? ????? ????????? ???????? ??? ???????? Microsoft Windows ??????. ????? ????????? ??????? ?? ??? ??????? ??? ??? ????????? ???????? ??? ???????? Visual C++.
????? ???? | ?? ????

??????

??? ????? ???? ??????? ?????? ??? ??????? ?? ??????? ?????? ActiveX ???? ?????? ??????? ????? ?? ??????? "?" ??? ??????? "?" ??? ???????. ?? ??????? ????????? ActiveX ??????? Engines ?????? Microsoft (VBScript ? JScript) ????? ?? ???? ??? ??? ??????? ?? ???????. ?? ?????? ?? ????? ?? IActiveScriptSite::OnScriptError(). ?? ???? ????????? ?? ?????? ??????? ?????? ??? ?????? ??? ????? ??? ??????? "?" ??? ??????? ???????. ??? ??????? ??????? ?? ????? ???- ??????? ??? ????? ???? ???? ActiveX Script Host ???????? ????? IActiveScriptSite::OnScriptError(). ??? ????? ?? ???? ????? ??? ??????? ??? ????? ????? ??? ????? ?? ??? ??????? ?????? ??? OnScriptError(). ????? ?? ???? ????? ??? ??????? ???? ??? ????? ????? IActiveScriptSiteDebug::OnScriptErrorDebug().

???? ??? ??????? ????? ????? ???????? ActiveX Script Host ???? ????? ??? ??????? ??? ?? ??????? ??????.

??????? ????

????? ??? ??????? ??? ??? ?????? ActiveX Script Host ??????. ?????? ??? ???? ?? ????????? ??? ??? ??????? ?????? ?????? ???????? ???????? ?? ??? "???????" ?? ??? ???????.

?? ????????? ?????? ?? ?????? ??????? ?????? ???? IActiveScriptSiteDebug::OnScriptErrorDebug ??? ???? ??? ??? ???????. ???? ????? IActiveScriptSiteDebug Script Host ????? ???? ???????? ?? ??????? ??? ???? ???????. ?? ??? Script Host ?????? ??? ???? ??? ??? ??????? ???? ????? ???? ???? IActiveScriptSiteDebug ?????.

????? ??? ??????? ????? IActiveScript::SetScriptSite ????? ???? ??????? ?????? QueryInterface ?????? IActiveScriptSite ????? ?????? ?????? IActiveScriptSiteDebug. ???? ??? ???? ?????? ???? ??????? ?????? ???? ???? ????? ???????? ??? ?????? ??. ??? ???? ?? ???? ???? QueryInterface ??? ?? ??????? ???? ??????? ?????? IActiveScriptSiteDebug::GetApplication() ????? ??????? ??????? ????? ????? ??????? ??????. ?? ???? ??? IActiveScriptSiteDebug::GetApplication() ???? ????? ???? ???????? ????? ?? ??????? ??? ????? ??? ??????, ??????? ??? IActiveScriptSite::OnScriptError() ???? ?????? ?????.

??? ?? ??????? IActiveScriptSiteDebug ?? ????? ???? ????:
   STDMETHOD(GetDocumentContextFromPosition)(
      DWORD dwSourceContext, 
      ULONG uCharacterOffset, 
      ULONG uNumChars, 
      IDebugDocumentContext **ppsc) {return E_NOTIMPL;}

   STDMETHOD GetApplication( IDebugApplication **ppda ) {return E_NOTIMPL;}

   STDMETHOD(GetRootApplicationNode)( IDebugApplicationNode **ppdanRoot) {return E_NOTIMPL;}
   
   STDMETHOD(OnScriptErrorDebug)( 
      IActiveScriptErrorDebug *pErrorDebug, 
      BOOL *pfEnterDebugger,
      BOOL *pfCallOnScriptErrorWhenContinuing) {return E_NOTIMPL;}
				
?????? ?? Visual C++ 2005 ??? ????? ??????? ??? ??? ??????? ??? ?????? ??????? ??????? ?????? (/ clr:oldSyntax) ????? ????? ????????? ???????? ?????? ?????. ?????? ??????? ??? ??? ??????? ??? ?????? ??????? ??????? ?????? ???? ??????? ???????:
  1. ???? ??? ??????? ?? ???? ??? ????? ProjectName.

    ??????ProjectName ?????? ?????? ??? ???????.
  2. ?? ?????? ????? ????? ?? ???? ??? ???.
  3. ?? ????? ??????? ???? ?????? ??? ????? ????? ?????? ??? ? ?????? ??????? (/ clr:oldSyntax) ?? ??? ????? ????? ?????? ???? ????? ??????? ???????.
  4. ???? ??? ????? ?? ???? ??? ?????.
????? ?? ????????? ??? ?????? ?????? ??????? ??????? ??? ??? ????? ????? ??????? ?? ?????? ???? ???? ????? Microsoft (MSDN) ?????? ??? ?????:
http://msdn2.microsoft.com/en-us/library/k8d11d4s.aspx
???? ????? Script Host ?? ????? ????? ???? ????? IActiveScriptSiteDebug. ?????? ??? ??????? ??? ????? IActiveScriptSiteDebug ????? MSDN ?????? ???? ???:
http://msdn.microsoft.com/en-us/library/6c5sfkte(VS.85).aspx

?????

?????? ??? ???? ?? ????????? ??? ????? ?????? ??? ActiveX ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
223139????? ????? ??? ???????? VBScript ??? ????? ATL
183698Axsh.exe ???? ????? ????? ???? ??????? ???? ??????
168214???? MFCAxs.exe ???? "??????? ?????? ??????" ???????? MFC
223389????? ????? Scripting.exe ??? ???? ????????? ???????? ?????? ActiveX Script ???????? ? ??????

???????

???? ???????: 232394 - ????? ??? ??????: 21/???? ??????/1435 - ??????: 5.3
????? ???
  • Microsoft Visual C++ 2005 Express Edition
  • Microsoft Visual C++ .NET 2003 Standard Edition
  • Microsoft Visual C++ .NET 2002 Standard Edition
  • Microsoft Visual C++ 6.0 Professional Edition
  • Microsoft Visual C++ 6.0 Enterprise Edition
  • Microsoft Visual C++, 32-bit Learning Edition 6.0
  • Microsoft Visual C++ 5.0 Professional Edition
  • Microsoft Visual C++ 5.0 Enterprise Edition
  • Visual Basic, Scripting Edition 5.0
  • Visual Basic, Scripting Edition 4.0
  • Visual Basic, Scripting Edition 3.0
????? ??????: 
kbnosurvey kbarchive kbmt kbactivexscript kbhowto KB232394 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????232394

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