Download mcc - Parent Directory

Transcript
mclGetLastErrorMessage
Purpose
Syntax
Last error message from unsuccessful function call
const char* mclGetLastErrorMessage()
Description
This function returns a function error message (usually in the form
of false or -1).
Examples
Example 1
size_t dataCount =
mclSetCmdLineUserData(GetMcrID(), argc, argv);
if(dataCount == -1) //an error has occurred while parsing
// the command line arguments
{
fprintf(stderr,
Error occurred while
setting user data: \n %s ,
mclGetLastErrorMessage());
return -1;
}
Example 2
char *args[] = { "-nodisplay" };
if(!mclInitializeApplication(args, 1))
{
fprintf(stderr,
An error occurred while initializing: \n %s
mclGetLastErrorMessage());
return -1;
}
See Also
,
mclInitializeApplication | mclTerminateApplication |
mclSetCmdLineUserData | <library>Initialize[WithHandlers] |
<library>Terminate
13-55