GetParameter

GetParameter returns values set by the script engine.

unsigned int GetParameter(
   Parameter parameter,
   __int64 *integer = NULL,
   const char16_t **wstring = NULL,
   void **pointer = NULL
);

Parameters

parameteridentifer of the parameter.
integerreturning integer value.
wstringreturning constant wide character string value.
pointerreturning void pointer value.

Return Values

If the method succeeds, the return value is zero else see error codes for more details.

Remarks

The pointer value allows for callback functions to identify their parent context, as well as the callback function itself.

Example Use
  • C++
#include "TScript.h"

int wmain(int argc, wchar_t* argv[])
{
   char16_t *message;
   CTScript script();
   script.SetParameter(CTScript::SOURCE_FILE,
         TEXT("D:\\temporary\\mySource.ts"));
   if(script.ExecuteStaticMethod()){//error
      if(script.GetParameter(CTScript::LAST_ERROR,NULL,&message))
         message = TEXT("Unknown script error");
      MessageBox(message);
   }
}

Also See

ExecuteStaticMethod, SetParameter
Listen All
Comments (0)
Characters left: 2500
 

Contact Ekky

Thanks for your interest.

Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage T-Accounts Online ObjectDatabase++ TScript Ekky Software Homepage T-Accounts Onlinee ObjectDatabase++ TScript