Home Texas Home

GetParameter

GetParameter returns values set by the script engine.
unsigned int GetParameter(
   Parameter parameter,
   __int64 *integer,
   const char16_t **wstring
);

Parameters

parameter Identifer of the parameter.
integer Returning integer value.
wstring Returning constant wide character string value.

Return Values

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

Remarks

Example Use

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

SetParameter

Copyright © 2007-2009, Ekky Software Pty Ltd.