Nikhil,
There is a function called PDMLoadMessages but last I heard it was non
functional. What your're going to have to do is something like this:
void PDMUtilErrGetEnumString(PTCERROR status, char *errStr) {
switch(status) {
case PDM_SUCCESS:
strcpy(errStr, "SUCCESS");
break;
case PDMERR_INTERNAL_ERROR:
strcpy(errStr, "INTERNAL_ERROR");
break;
case PDMERR_NOT_IMPLEMENTED:
strcpy(errStr, "NOT_IMPLEMENTED");
break;
....
}
I coded my own error reporting functions much like PDMTestError.c but with
more functionality. You should check out PDMTestError.c.
Patrick Williams
Application Engineer
Steelcase, Inc.