GetErrorString

Applies To:

ChemDraw Menu Extensions Interface:  Functions to Implement

Description:

Given an error code, returns a string describing the error.

Syntax:

long WINAPI GetErrorString( long errorCode,
                                                  char *errorString,
                                                  long maxStringLen
);

errorCode error code returned by a previous function call
errorString buffer for null-terminated error string
maxStringLen maximum length of error string

Returns a long indicating success (0) or failure (!0) of the function.

Remarks:

If an error is returned by a previous call to another function, GetErrorString may be called to provide an error message.

This function must have ordinal number 21 in the Export Definition File.

Example:

See Also:



2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email   info@cambridgesoft.com
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA