PROGRAMMING GUIDE
Most of the Exchange 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:
ASInt32 iRet = A3DAsmModelFileLoadFromFile(acFileName, NULL, &p); if (iRet == A3D_SUCCESS) { … } else fprintf("Error: %1d\n", iRet);
Although subsequent explanations in this section omit this description, you must still check for errors when a HOOPS Exchange API function returns.