次の方法で共有


Retrieves the line in the source file where an error occurred while a scripting engine was running a script.

Microsoft® Windows® Script Interfaces
IActiveScriptError::GetSourceLineText
 Language Reference
Previous
Next

  HRESULT GetSourceLineText(
    BSTR *pbstrSourceLine  // address of buffer for source line
);

  • Returns S_OK if successful, or E_FAIL if the line in the source file was not retrieved.
  • pbstrSourceLine
    [out] Address of a buffer that receives the line of source code in which the error occurred.