![]() |
![]() |
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| DelevopersTScript APIExecute Static Method |
unsigned int ExecuteStaticMethod( const char* methodName = NULL, TVariable *inputList = NULL, unsigned short inputList_l = 0, TVariable *outputList = NULL, unsigned short outputList_l = 0, TVariable *errorVariable = NULL );
| methodName | The name of the static method used to call the sript, if NULL then the default script static method will be called. |
| inputList | An array of TVariables that have the input method parameters. |
| inputList_l | The length of input parameters. |
| outputList | An array of TVariables in which the returning results of the successful method will be stored. |
| outputList_l | The length of output parameters. |
| errorVariable | If the script generated and error, the error will be copied to this TVariable. |
CTScript script();
script.AddParameter(CTScript::SOURCE_FILE,L"D:\\temporary\\mySource.ts");
if(script.ExecuteStaticMethod()){//error
if(script.GetInformation(CTScript::LAST_ERROR,NULL,&message)) message = L"Unknown script error";
MessageBox(message);
}
Copyright © 2007, Ekky Software Pty Ltd.