Getting the source path using MS Script Control ( IActiveScriptError) if any exception or error occured
-
All, Are there any way to get the source path (file path along with the file name) from MS Script Control ? Let's assume, I have addded some peiece of code into the script engine. In that piece of code, I also have included few vbinc files by calling as below include "C:\test\test.vbinc" The code that i had added into the script engine are as follows: '--------------------------------------------- option explicit include "C:\test\test1.vbinc" include "C:\test\test2.vbinc" sub test1() msgbox "hi1" end sub sub test2() msgbox "hi2" end sub dim mymsg : mymsg = String(2,"hi") function test4 if IsNull(mymsg) then msgbox "hi3" else msgbox "hi4" end if end function '--------------------------------------------- Now, if script engine found any error in the added code, i am able to get the source line and text using XActiveScriptSite::OnScriptError() function provided by MS Script Control. But not able to get the file name path i.e if any error or exception occured in the vbinc file as i need to tell the name and absolute path of the vbinc file name along with the line number and source text to the user. Suggetions are most welcome. Thanks in advance, AKS