Add scripting to your application with Vbsedit Embedded!



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

HRESULT GetSourcePosition(
    DWORD *pdwSourceContext,  // context cookie
    ULONG *pulLineNumber,     // line number of error
    LONG *pichCharPosition    // character position of error


[out] Address of a variable that receives a cookie that identifies the context. The interpretation of this parameter depends on the host application.


[out] Address of a variable that receives the line number in the source file where the error occurred.


[out] Address of a variable that receives the character position in the line where the error occurred.

Returns S_OK if successful, or E_FAIL if the location was not retrieved.

Add Scripting to your application with VbsEdit Embedded!

Download Vbsedit Embedded

This package includes VbsEdit Embedded 32-bit and 64-bit.


Copyright © 2001-2019 adersοft