9 Handling errors
Most of the HOOPS Publish API functions return an integer that indicates success or failure. A return value of A3D_SUCCESS indicates success, and any negative return value indicates failure. The following example shows one approach for evaluating this returned result:
A3DInt32 iRet = A3D_SUCCESS;
iRet = A3DPDFDocumentCreateFromPDFFile(in_pdftemplatefile, &pDoc);
if(iRet == A3D_SUCCESS) { ... };
Error codes are detailed in the A3DPDFErrorCodes.h file.
