TScript API Error Codes
It is far easier to get the system information to findout what caused the error, and only use the error number for error handling. See the example code:-
- C++
#include "TScript.h" int wmain(int argc, wchar_t* argv[]) { unsigned int result; const char16_t *string; CTScript ts; if((result = ts.ExecuteStaticMethod()) != NO_ERROR){ ts.GetParameter(CTScript::LAST_ERROR,NULL,&string); MessageBox((wchar_t*)string, TEXT("TScript Runtime Error Message"), MB_ICONERROR); } return NO_ERROR; }
For more information on the above code, please see GetParameter
Listen All
Comments (0)