Open Error

ptrMyFile = hopen("myfile.hsh",UPDT,&iReason);

if (ptrMyFile == NULL)
    { error processing }

iReason contains the error code