Please write me how to run VB Script from a C++ or C program.
Printable View
Please write me how to run VB Script from a C++ or C program.
Something like:
HINSTANCE hi;
CString Msg;
hi = ShellExecute(m_hWnd, "open", lpszCmdLine, NULL, NULL, SW_SHOWNORMAL);
if ((UINT) hi < 32)
Msg.Format("ShellExecute failed; error code = %X", hi);
else
Msg.Format("Instance handle for %s is %X", lpszCmdLine, hi);
MessageBox(Msg);