VB Scripting in MFC
-
I would like to allow my MFC program to execute a VB script. This script would also include command specific to my application. Can someone point me in the right (probably COM) direction? Neil
-
I would like to allow my MFC program to execute a VB script. This script would also include command specific to my application. Can someone point me in the right (probably COM) direction? Neil
If you are wanting to execute a .vbs or .wsh file, you can use
ShellExecute()
.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
I would like to allow my MFC program to execute a VB script. This script would also include command specific to my application. Can someone point me in the right (probably COM) direction? Neil
I think, start from Windows Script Interfaces[^] and continue from there. You'll find Eric Lippert's blog[^] helpful as well. Eric was one of the developers on the VBScript engine. If you want simpler scripting, consider using the Microsoft Scripting Control,
msscript.ocx
. Stability. What an interesting concept. -- Chris Maunder