/// String representation of error messages /// </summary> public static string GetKMSErrorMessage(TR_Error e) { switch (e) { case TR_Error.TR_OK: return("No Error"); case TR_Error.TR_LABEL_ERROR: return("Invalid input or output label"); case TR_Error.TR_TRANSFORMATION_ERROR: return("Transformation failed"); case TR_Error.TR_ALLOCATION_ERROR: return("Allocation failed"); } // Unknown error code - throw an exception throw new ArgumentException(); }
public static TR_Error InitLibrary(string folder) { TR_Error err = is64Bit ? PInvoke64Bit.TR_InitLibrary(folder) : PInvoke32Bit.TR_InitLibrary(folder); return(err); }
public static TR_Error InitLibrary(string folder) { TR_Error err = TR_InitLibrary(folder); return(err); }