Initializing help system before first use

# XPRS_msp_getlasterror

Purpose
Gets the last error message.
Synopsis
`int XPRS_CC XPRS_msp_getlasterror(XPRSmipsolpool msp, int * iMsgNumber, char * msg, int iStringBufferBytes, int * iBytesInInternalString)`
Arguments

mse | The current MIP solution pool.
iMsgNumber | A pointer to an integer to return the number of the last error message. Can be NULL if not required. Refer to Chapter 9 of the Optimizer Reference Manual for a list of possible error numbers, the errors and warnings that they indicate, and advice on what they mean and how to resolve them.
msg | A character buffer of length at least iStringBufferBytes to return the error message. Can be NULL if not required.
iStringBufferBytes | The length of the msg buffer.
iBytesInInternalString | A pointer to an integer to return the number of bytes required to store the error message. Can be NULL if not required.

Related topics
Chapter 9 of the Optimizer Reference Manual, XPRS_msp_setcbmsghandler.
Parent Topic MSP Functions

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.