Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to parse the code without executing the global code?

29 views
Skip to first unread message

saber...@gmail.com

unread,
Dec 22, 2014, 2:41:22 AM12/22/14
to
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
0 new messages