A non-zero return value indicates that there was a problem generating the JSON solution string. Refer to the Error Code table for a list of possible return values.
model: Model from which to query its current JSON solution string.
buffP: The location in which the pointer to the newly created JSON string should be placed.
On Windows, the string returned in
buffP is allocated in a
different heap from the calling program. You must call
to free it.