Hello all. I'm writing a host that support multiple languages using the technique in here[1]. So far I created two IAS objects and two IASParse objects, put code in each IASParse objects, and connected to JS engine. The script looks like this:
JS:
vbs_invoke();
VBS:
sub vbs_invoke()
msgbox "test"
end sub
However IAS will tell me it cannot find the object. If I connect VBS first then JS it is fine. However the code might contain some global codes which I don't want them to get executed.
Is there a way for the script engine to parse the code only?
[1]:
http://www.codeproject.com/Articles/17038/COM-in-plain-C-part#MULTI