| 41 | static short gTopactivity = 0; |
| 42 | |
| 43 | void showerror(char * errdesc, const char * errcomment) |
| 44 | { |
| 45 | short itemHit; |
| 46 | Str255 paserr, |
| 47 | pascomment; |
| 48 | |
| 49 | SetCursor(&qd.arrow); |
| 50 | if (errcomment == nil) errcomment = ""; |
| 51 | C2P (errcomment, pascomment); |
| 52 | C2P (errdesc, paserr); |
| 53 | ParamText(paserr,pascomment,gActivities[gTopactivity],(StringPtr)""); |
| 54 | itemHit = Alert(errAlertID, (ModalFilterUPP)nil); |
| 55 | } |
| 56 | |
| 57 | Boolean itworked(short errcode) |
| 58 | /* Return TRUE if it worked, do an error message and return false if it didn't. Error |