Introduction to the TScript

The TScript language has been designed and developed to be an embeddable scripting language for native C/C++ code. The main criteria for TScript is to allow scripting functionality to be added to the to your software post installation and allow users of a system to customise it for their own personal needs.

A Basic "Hello World" TScript

  • C++
#include "TScript.h"

int wmain(int argc, wchar_t* argv[])
{
   CTScript ts;
   ts.SetParameter(CTScript::SOURCE_STRING,0,
      u"main(){System::MessageBox(L\"Hello World\");}");
   ts.ExecuteStaticMethod();
   return NO_ERROR;
}

More Details on TScript Basics