Discussion:
VBScript enigine not showing a MsgBox
(too old to reply)
R.Wieser
2020-04-26 08:55:14 UTC
Permalink
Hello all,

I've been translating an example found here
https://stackoverflow.com/questions/7491868/how-to-load-call-a-vbscript-function-from-within-c
into Assembly, and although I do not get any errors, the MsgBox refuses to
show itself.

Observation:
While trying to display that MsgBox I do not get a (QueryInterface, IID)
request for an ActiveScriptSiteWindow, but do see one for
ActiveScriptSiteUIControl. However, handling it doesn't seem to change
anything.

Remark:
I've build the program for the Console, not the GUI.

Regards,
Rudy Wieser
R.Wieser
2020-04-27 18:42:29 UTC
Permalink
and although I do not get any errors, the MsgBox refuses to show itself.
It turns out I forgot to save-and-restore a register (esi) that I used in
the ActiveScriptSite objects QueryInterface method. After having done that
the ActiveScritpSiteWindow object was indeed requested, and after having
implemented it the MsgBox got displayed.

... and thats not something anyone could have guessed from what I posted :-|

Just shows you that not getting errors doesn't mean your program cannot have
big problems - and I do not mean implementation wise.

Regards,
Rudy Wieser
JJ
2020-04-28 01:51:32 UTC
Permalink
Post by R.Wieser
Just shows you that not getting errors doesn't mean your program cannot have
big problems - and I do not mean implementation wise.
IME, a silent error is more troublesome that the frank one. It's usually the
main cause of collateral damage.
R.Wieser
2020-04-28 08:12:40 UTC
Permalink
JJ,
Post by JJ
IME, a silent error is more troublesome that the frank one.
In that sense I might even regard myself lucky, as the mistake/error wasn't
really silent at all. Its effect was just hidden nicely, needing me to go
thru several posibilities before finding the actual cause (and I do not even
rember how/why I decided to check for it, it just popped into my mind).

Regards,
Rudy Wieser

Loading...