newObjects-logo.gif (1024 bytes) ScriptManager2 reference
int SCPHOSTCLNT::GetLastError(
LPTSTR lpszBuff, // Buffer to receive the error description text
int nBuffSize // Size of the buffer in chars
);

Extracts the last error description from the component.

Returns the count of characters copied including the null terminator or 0 if the buffer size if not enough.

 

Remarks:

Buffer must be large enough to hold the null terminating character of the error description string. Called with NULL for the buffer pointer returns the length of the error string without null terminating character.

See also:

Script Manager2 lastError property

newObjects Copyright newObjects 2001-2005