用下面代码试试,单引号是VBScript的注释符。CString sz;
sz = "MsgBox(\"Hello World!\", 65, \"MsgBox Example\")";
m_scripttest.SetLanguage("VBScript");
m_scripttest.ExecuteStatement(sz);
sz = "MsgBox(\"Hello World!\", 65, \"MsgBox Example\")";
m_scripttest.SetLanguage("VBScript");
m_scripttest.ExecuteStatement(sz);
sz = " MsgBox \"Hello World!\", 65, \"MsgBox Example\" ";
不应该有括号