Toolkit Return Results and Error Codes

Return results for Toolkit are specific for each property or method.

See the entry for the property or method in the Toolkit Reference Manual for specific information about return values for a property or method.

Most common return error:

  • -998 = Toolkit is not licensed. (Check License Manager)
  • -1 = Unable to open input or output file. (Usually a permissions issue)
  • -2 = Unable to open input file, the user password is invalid. (Toolkit 8.1.4+)
  • -3 = Unable to open input file, the owner password is invalid. (Toolkit 8.1.4+)

Some methods provide Extended information:

Note: To get Windows API error information, call the Microsoft Windows API function, GetLastError:

Then check the appropriate error code list: