PROGRAMMING GUIDE
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:
Error codes are detailed in the A3DPDFErrorCodes.h file.