Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Getting the source path using MS Script Control ( IActiveScriptError) if any exception or error occured

Getting the source path using MS Script Control ( IActiveScriptError) if any exception or error occured

Scheduled Pinned Locked Moved C / C++ / MFC
toolshelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AKSIVAKUMAR
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups