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
parameter | identifer of the parameter. |
integer | returning integer value. |
wstring | returning constant wide character string value. |
pointer | returning 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, SetParameterListen All
Comments (0)