Syntax 

int PCMSGetError()


Parameters 

None


Description

Returns the number of the last error the engine caught. There are constants defined for each of the possible errors.


Return Values 

The number of the last error the engine caught.


Sample Code

/* Open a connection to the server */
        serverID = PCMSOpenServer(NULL, NULL);
        if (!serverID)
        {
/* Print the error if we couldn't initialize */
        PCMSGetErrorString(PCMSGetError(), buffer, 100);
        printf ("Could not initialize: %s\n", buffer);
                        return;


Supported Since: PC*MILER|Connect 12

Category: Administration