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
Related documents
MATLAB Compiler
MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE User`s guide
MATLAB BUILDER JA 2 User`s guide
PEAXACT Application Server - User Manual
MATLAB Compiler User`s Guide
MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE User`s guide
User Manual for the DREAM Toolbox Version 2.1.3 An ultrasound
MATLAB Compiler User`s Guide
MATLAB POLYSPACE 7 Installation guide