Custom Functions > Function Definitions > CreateUserErrorMessageTable
BOOL CreateUserErrorMessageTable(HINSTANCE hDLL, unsigned int n, char *[] ErrorMessageTable);
CreateUserErrorMessageTable is called when the DLL is attaching to the address space of the current process in order to register the user error message table with PTC Mathcad. This allows error messages to be displayed when the user clicks on a custom function in the same way that they are for built-in functions.
Handle of the DLL supplied by the DLL entry point routine.
Number of error messages in the table.
An array of n strings with the text of the error messages.
Return Value
Returns TRUE if the registration is successful, FALSE otherwise.
Additional Information
Use the MAKELRESULT command in your function definition to specify which errors are returned and which variables are circled for particular errors.
Was this helpful?