Executing vbscript within a C++ Application

Executing vbscript within a C++ Application

Post by Steve Scof » Fri, 20 Feb 2004 03:24:27


Hello all,

I would like to do something I thought would be simple. I have some
vbscript files and would like to execute them through a C++ program.
Getting them to run is not a problem using wscript.exe. But the errors pop
up as message boxes and if I run wscript.exe with //B, the error messages
are lost entirely. Is it possible to execute vbs directly in C++ using
vbscript.dll or wshom.ocx or something, if so how?

Cheers for the help,

Steve