I have this code:
Code:
return 1; CReport *report = new CReport; CReportWrapper *reportWrapper = new CReportWrapper(report); reportWrapper->setObjectName("reportWrapper1"); QSInterpreter ip; ip.addWrapperFactory(new CWrappers()); ip.addTransientObject(reportWrapper); ip.evaluate(scriptCode, 0, fileName); ip.call("mytest");
and test-script.qs consist of:
Code:
function mytest() { MessageBox.warning("This is test", MessageBox.Yes, MessageBox.No); Application.reportWrapper1.setPing(666); }
And i have error message: "Error. Use of undefined variable 'MessageBox'" :confused: