Click here to Skip to main content
15,911,707 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVisual Studio project generator Pin
CDRAIN19-Feb-07 20:35
CDRAIN19-Feb-07 20:35 
AnswerRe: Visual Studio project generator Pin
Hamid_RT19-Feb-07 20:47
Hamid_RT19-Feb-07 20:47 
AnswerRe: Visual Studio project generator Pin
Hamid_RT19-Feb-07 20:55
Hamid_RT19-Feb-07 20:55 
GeneralRe: Visual Studio project generator Pin
CDRAIN20-Feb-07 12:48
CDRAIN20-Feb-07 12:48 
GeneralRe: Visual Studio project generator Pin
CDRAIN20-Feb-07 12:49
CDRAIN20-Feb-07 12:49 
QuestionCTreeCtrl data in MS Access Database Pin
TanmaySathe19-Feb-07 18:16
TanmaySathe19-Feb-07 18:16 
AnswerRe: CTreeCtrl data in MS Access Database Pin
Hamid_RT19-Feb-07 18:33
Hamid_RT19-Feb-07 18:33 
QuestionGetting the source path using MS Script Control ( IActiveScriptError) if any exception or error occured Pin
AKSIVAKUMAR19-Feb-07 17:51
AKSIVAKUMAR19-Feb-07 17:51 
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


QuestionHotkeys in menus Pin
KellyR19-Feb-07 17:37
KellyR19-Feb-07 17:37 
AnswerRe: Hotkeys in menus Pin
Naveen19-Feb-07 18:30
Naveen19-Feb-07 18:30 
GeneralRe: Hotkeys in menus Pin
KellyR19-Feb-07 20:31
KellyR19-Feb-07 20:31 
GeneralRe: Hotkeys in menus Pin
Naveen19-Feb-07 20:36
Naveen19-Feb-07 20:36 
AnswerRe: Hotkeys in menus Pin
toxcct19-Feb-07 20:34
toxcct19-Feb-07 20:34 
AnswerRe: Hotkeys in menus Pin
Nibu babu thomas19-Feb-07 20:40
Nibu babu thomas19-Feb-07 20:40 
GeneralRe: Hotkeys in menus Pin
KellyR20-Feb-07 17:12
KellyR20-Feb-07 17:12 
GeneralRe: Hotkeys in menus Pin
Nibu babu thomas20-Feb-07 17:17
Nibu babu thomas20-Feb-07 17:17 
GeneralRe: Hotkeys in menus Pin
KellyR20-Feb-07 19:26
KellyR20-Feb-07 19:26 
GeneralRe: Hotkeys in menus Pin
Nibu babu thomas20-Feb-07 19:28
Nibu babu thomas20-Feb-07 19:28 
Questionhow can i add image/file icon in listview? Pin
amitmistry_petlad 19-Feb-07 16:55
amitmistry_petlad 19-Feb-07 16:55 
AnswerRe: how can i add image/file icon in listview? Pin
Hamid_RT19-Feb-07 17:46
Hamid_RT19-Feb-07 17:46 
GeneralRe: how can i add image/file icon in listview? Pin
amitmistry_petlad 19-Feb-07 17:51
amitmistry_petlad 19-Feb-07 17:51 
GeneralRe: how can i add image/file icon in listview? Pin
Hamid_RT19-Feb-07 18:12
Hamid_RT19-Feb-07 18:12 
GeneralRe: how can i add image/file icon in listview? Pin
amitmistry_petlad 19-Feb-07 18:55
amitmistry_petlad 19-Feb-07 18:55 
GeneralRe: how can i add image/file icon in listview? Pin
Hamid_RT19-Feb-07 19:10
Hamid_RT19-Feb-07 19:10 
GeneralRe: how can i add image/file icon in listview? Pin
amitmistry_petlad 19-Feb-07 20:12
amitmistry_petlad 19-Feb-07 20:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.