home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-07-10 | 1.8 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Jul 10 15:37:18 1996, modified Wed Jul 10 15:37:18 1996, creator 'CWIE', type ASCII, 1094 bytes "ErrorUtils.c" , at 0x4c6 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dearkID
| deark: macbinary
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 45 72 72 6f 72 55 | 74 69 6c 73 2e 63 00 00 |..ErrorU|tils.c..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 04 46 00 | 00 01 9a ae 09 b6 ee ae |......F.|........|
|00000060| 09 b6 ee 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7e 99 00 00 |........|....~...|
|00000080| 2f 2f 09 45 72 72 6f 72 | 55 74 69 6c 73 0d 2f 2f |//.Error|Utils.//|
|00000090| 09 a9 31 39 39 36 20 53 | 74 75 61 72 74 20 53 6e |..1996 S|tuart Sn|
|000000a0| 61 64 64 6f 6e 0d 2f 2f | 0d 2f 2f 09 54 68 69 73 |addon.//|.//.This|
|000000b0| 20 69 73 20 6d 79 20 73 | 65 63 6f 6e 64 20 63 20 | is my s|econd c |
|000000c0| 75 6e 69 74 20 65 76 65 | 72 20 77 72 69 74 74 65 |unit eve|r writte|
|000000d0| 6e 20 6f 6e 20 74 68 65 | 20 6d 61 63 2c 20 61 6e |n on the| mac, an|
|000000e0| 64 20 62 61 73 69 63 61 | 6c 6c 79 20 69 74 20 64 |d basica|lly it d|
|000000f0| 6f 65 73 20 74 68 65 0d | 2f 2f 20 20 73 74 75 66 |oes the.|// stuf|
|00000100| 66 20 74 68 61 74 20 69 | 73 20 65 72 72 6f 72 2d |f that i|s error-|
|00000110| 72 65 6c 61 74 65 64 2c | 20 6c 69 6b 65 20 64 69 |related,| like di|
|00000120| 73 70 6c 61 79 69 6e 67 | 20 65 72 72 6f 72 20 6d |splaying| error m|
|00000130| 65 73 73 61 67 65 73 20 | 61 6e 64 20 73 74 75 66 |essages |and stuf|
|00000140| 66 2e 0d 2f 2f 0d 2f 2f | 09 57 68 61 74 20 69 74 |f..//.//|.What it|
|00000150| 20 6e 65 65 64 73 2e 2e | 2e 0d 2f 2f 09 09 32 20 | needs..|..//..2 |
|00000160| 41 4c 52 54 2f 44 49 54 | 4c 20 72 65 73 6f 75 72 |ALRT/DIT|L resour|
|00000170| 63 65 73 2c 09 6f 6e 65 | 20 66 6f 72 20 74 68 65 |ces,.one| for the|
|00000180| 20 63 75 73 74 6f 6d 20 | 64 69 61 6c 6f 67 2c 09 | custom |dialog,.|
|00000190| 09 09 49 44 3d 2d 31 30 | 30 31 3b 0d 2f 2f 09 09 |..ID=-10|01;.//..|
|000001a0| 09 09 09 09 09 09 6f 6e | 65 20 66 6f 72 20 74 68 |......on|e for th|
|000001b0| 65 20 73 74 61 6e 64 61 | 72 64 20 64 69 61 6c 6f |e standa|rd dialo|
|000001c0| 67 2c 09 49 44 3d 2d 31 | 30 30 30 3b 0d 2f 2f 09 |g,.ID=-1|000;.//.|
|000001d0| 09 31 20 27 53 54 52 23 | 27 20 72 65 73 6f 75 72 |.1 'STR#|' resour|
|000001e0| 63 65 2c 20 75 73 65 64 | 20 74 6f 20 73 74 6f 72 |ce, used| to stor|
|000001f0| 65 20 65 72 72 6f 72 20 | 6d 65 73 73 61 67 65 73 |e error |messages|
|00000200| 2c 09 09 09 49 44 3d 73 | 70 65 63 69 66 69 65 64 |,...ID=s|pecified|
|00000210| 20 61 74 20 72 75 6e 74 | 69 6d 65 2e 0d 0d 23 69 | at runt|ime...#i|
|00000220| 6e 63 6c 75 64 65 20 22 | 45 72 72 6f 72 55 74 69 |nclude "|ErrorUti|
|00000230| 6c 73 2e 68 22 0d 0d 69 | 6e 74 20 09 65 72 72 6f |ls.h"..i|nt .erro|
|00000240| 72 4c 69 73 74 3b 0d 0d | 76 6f 69 64 20 45 72 72 |rList;..|void Err|
|00000250| 6f 72 73 49 6e 69 74 20 | 28 69 6e 74 20 74 68 65 |orsInit |(int the|
|00000260| 52 65 73 49 44 29 0d 7b | 0d 09 65 72 72 6f 72 4c |ResID).{|..errorL|
|00000270| 69 73 74 20 3d 20 74 68 | 65 52 65 73 49 44 3b 0d |ist = th|eResID;.|
|00000280| 7d 0d 0d 76 6f 69 64 20 | 45 72 72 6f 72 53 74 61 |}..void |ErrorSta|
|00000290| 6e 64 61 72 64 20 28 4f | 53 45 72 72 20 74 68 65 |ndard (O|SErr the|
|000002a0| 45 72 72 6f 72 29 0d 7b | 0d 09 69 6e 74 09 09 69 |Error).{|..int..i|
|000002b0| 74 65 6d 48 69 74 3b 0d | 09 53 74 72 32 35 35 09 |temHit;.|.Str255.|
|000002c0| 74 68 65 45 72 72 53 74 | 72 69 6e 67 3b 0d 09 0d |theErrSt|ring;...|
|000002d0| 09 69 66 20 28 74 68 65 | 45 72 72 6f 72 29 7b 0d |.if (the|Error){.|
|000002e0| 09 09 4e 75 6d 54 6f 53 | 74 72 69 6e 67 28 20 28 |..NumToS|tring( (|
|000002f0| 69 6e 74 29 20 74 68 65 | 45 72 72 6f 72 2c 20 74 |int) the|Error, t|
|00000300| 68 65 45 72 72 53 74 72 | 69 6e 67 29 3b 0d 09 09 |heErrStr|ing);...|
|00000310| 50 61 72 61 6d 54 65 78 | 74 28 74 68 65 45 72 72 |ParamTex|t(theErr|
|00000320| 53 74 72 69 6e 67 2c 20 | 30 4c 2c 20 30 4c 2c 20 |String, |0L, 0L, |
|00000330| 30 4c 29 3b 0d 09 09 69 | 74 65 6d 48 69 74 20 3d |0L);...i|temHit =|
|00000340| 20 41 6c 65 72 74 28 73 | 74 61 6e 64 61 72 64 45 | Alert(s|tandardE|
|00000350| 72 72 41 6c 65 72 74 49 | 44 2c 20 30 4c 29 3b 0d |rrAlertI|D, 0L);.|
|00000360| 09 7d 0d 7d 0d 0d 76 6f | 69 64 20 45 72 72 6f 72 |.}.}..vo|id Error|
|00000370| 20 28 4f 53 45 72 72 20 | 74 68 65 45 72 72 6f 72 | (OSErr |theError|
|00000380| 29 0d 7b 0d 09 69 6e 74 | 09 09 69 74 65 6d 48 69 |).{..int|..itemHi|
|00000390| 74 3b 0d 09 53 74 72 32 | 35 35 09 74 68 65 53 74 |t;..Str2|55.theSt|
|000003a0| 72 69 6e 67 3b 0d 09 53 | 74 72 32 35 35 09 74 68 |ring;..S|tr255.th|
|000003b0| 65 45 72 72 53 74 72 69 | 6e 67 3b 0d 09 0d 09 69 |eErrStri|ng;....i|
|000003c0| 66 20 28 74 68 65 45 72 | 72 6f 72 29 7b 0d 09 09 |f (theEr|ror){...|
|000003d0| 47 65 74 49 6e 64 53 74 | 72 69 6e 67 28 74 68 65 |GetIndSt|ring(the|
|000003e0| 53 74 72 69 6e 67 2c 20 | 65 72 72 6f 72 4c 69 73 |String, |errorLis|
|000003f0| 74 2c 20 74 68 65 45 72 | 72 6f 72 29 3b 0d 09 09 |t, theEr|ror);...|
|00000400| 69 66 20 28 74 68 65 53 | 74 72 69 6e 67 5b 30 5d |if (theS|tring[0]|
|00000410| 29 20 7b 0d 09 09 09 4e | 75 6d 54 6f 53 74 72 69 |) {....N|umToStri|
|00000420| 6e 67 28 20 74 68 65 45 | 72 72 6f 72 2c 20 74 68 |ng( theE|rror, th|
|00000430| 65 45 72 72 53 74 72 69 | 6e 67 29 3b 0d 09 09 09 |eErrStri|ng);....|
|00000440| 50 61 72 61 6d 54 65 78 | 74 28 74 68 65 53 74 72 |ParamTex|t(theStr|
|00000450| 69 6e 67 2c 20 74 68 65 | 45 72 72 53 74 72 69 6e |ing, the|ErrStrin|
|00000460| 67 2c 20 30 4c 2c 20 30 | 4c 29 3b 0d 09 09 09 69 |g, 0L, 0|L);....i|
|00000470| 74 65 6d 48 69 74 20 3d | 20 41 6c 65 72 74 28 63 |temHit =| Alert(c|
|00000480| 75 73 74 6f 6d 45 72 72 | 41 6c 65 72 74 49 44 2c |ustomErr|AlertID,|
|00000490| 20 30 4c 29 3b 0d 09 09 | 7d 20 65 6c 73 65 20 7b | 0L);...|} else {|
|000004a0| 0d 09 09 09 45 72 72 6f | 72 53 74 61 6e 64 61 72 |....Erro|rStandar|
|000004b0| 64 28 74 68 65 45 72 72 | 6f 72 29 3b 0d 09 09 7d |d(theErr|or);...}|
|000004c0| 0d 09 7d 09 0d 7d 00 00 | 00 00 00 00 00 00 00 00 |..}..}..|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000510| e4 d6 14 e2 14 c7 1e ec | 3f 7e 42 55 1d 37 40 56 |........|?~BU.7@V|
|00000520| b6 19 db 49 da 79 dc d3 | bb 1c 7e a2 56 76 c4 92 |...I.y..|..~.Vv..|
|00000530| 0c 45 72 72 6f 72 55 74 | 69 6c 73 2e 63 b4 02 00 |.ErrorUt|ils.c...|
|00000540| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 00 ff ba |..TEXTCW|IE......|
|00000550| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 00 ff ba |..TEXTCW|IE......|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 ae 08 67 40 00 00 | 04 46 00 00 01 9a 40 d0 |....g@..|.F....@.|
|00000580| 57 9e 02 14 74 86 85 a0 | 28 de 16 38 76 52 14 42 |W...t...|(..8vR.B|
|00000590| 90 60 65 86 a8 e4 c6 04 | 84 20 62 1e 6d 80 88 04 |.`e.....|. b.m...|
|000005a0| a2 01 99 cd b9 14 c4 72 | 62 cd 5f 48 ad db 30 d7 |.......r|b._H..0.|
|000005b0| 33 04 69 34 f2 53 3a 1c | 8d 26 e3 39 50 df 06 8d |3.i4.S:.|.&.9P...|
|000005c0| bb 6f 58 12 c0 44 0c 0d | 8c 19 b4 09 79 f5 40 81 |.oX..D..|....y.@.|
|000005d0| c7 bf 00 00 de 04 80 25 | d8 08 56 bd 2e 05 3b 52 |.......%|..V...;R|
|000005e0| 41 60 e0 05 cd 8b d0 9b | 98 d0 ab 06 43 d6 b5 16 |A`......|....C...|
|000005f0| 08 88 68 22 08 20 89 8d | 98 9d 8e 0b 97 20 01 3c |..h". ..|..... .<|
|00000600| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 03 | 00 04 00 57 00 04 01 b8 |........|...W....|
|00000630| 01 ed 00 57 00 04 01 b8 | 01 ed af 30 eb d3 00 00 |...W....|...0....|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|00000650| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000660| 00 00 00 46 00 c7 35 d4 | 18 3e 00 00 00 1c 00 46 |...F..5.|.>.....F|
|00000670| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000680| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000690| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+