home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1999-07-31 | 4.6 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: EgOSUtils.h
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Sat Jul 31 18:28:33 1999, modified Sat Jul 31 18:28:33 1999, creator 'CWIE', type ASCII, 4029 bytes "EgOSUtils.h" , at 0x103d 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 45 67 4f 53 55 74 | 69 6c 73 2e 68 00 00 00 |..EgOSUt|ils.h...|
|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 0f bd 00 | 00 01 9a b3 c9 29 11 b3 |........|.....)..|
|00000060| c9 29 11 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 b8 14 00 00 |........|........|
|00000080| 0d 23 69 66 6e 64 65 66 | 20 5f 45 47 4f 53 55 54 |.#ifndef| _EGOSUT|
|00000090| 49 4c 53 5f 0d 23 64 65 | 66 69 6e 65 20 5f 45 47 |ILS_.#de|fine _EG|
|000000a0| 4f 53 55 54 49 4c 53 5f | 0d 0d 23 69 6e 63 6c 75 |OSUTILS_|..#inclu|
|000000b0| 64 65 20 22 43 45 67 46 | 69 6c 65 53 70 65 63 2e |de "CEgF|ileSpec.|
|000000c0| 68 22 0d 0d 0d 23 69 66 | 20 45 47 5f 4d 41 43 0d |h"...#if| EG_MAC.|
|000000d0| 23 69 6e 63 6c 75 64 65 | 20 3c 51 75 69 63 6b 64 |#include| <Quickd|
|000000e0| 72 61 77 2e 68 3e 0d 23 | 65 6e 64 69 66 0d 0d 0d |raw.h>.#|endif...|
|000000f0| 63 6c 61 73 73 20 55 74 | 69 6c 53 74 72 3b 0d 63 |class Ut|ilStr;.c|
|00000100| 6c 61 73 73 20 43 45 67 | 46 69 6c 65 53 70 65 63 |lass CEg|FileSpec|
|00000110| 3b 0d 63 6c 61 73 73 20 | 43 45 67 45 72 72 3b 0d |;.class |CEgErr;.|
|00000120| 0d 63 6c 61 73 73 20 45 | 67 4f 53 55 74 69 6c 73 |.class E|gOSUtils|
|00000130| 20 7b 0d 09 09 09 0d 09 | 09 09 09 09 09 0d 09 70 | {......|.......p|
|00000140| 75 62 6c 69 63 3a 0d 09 | 09 2f 2f 20 09 09 09 43 |ublic:..|.// ...C|
|00000150| 61 6c 6c 20 74 68 69 73 | 20 6f 6e 63 65 20 61 74 |all this| once at|
|00000160| 20 70 72 6f 67 72 61 6d | 20 73 74 61 72 74 75 70 | program| startup|
|00000170| 0d 09 09 73 74 61 74 69 | 63 20 76 6f 69 64 09 09 |...stati|c void..|
|00000180| 09 09 09 49 6e 69 74 69 | 61 6c 69 7a 65 28 29 3b |...Initi|alize();|
|00000190| 0d 09 0d 09 09 2f 2f 09 | 50 6f 73 74 3a 09 41 73 |.....//.|Post:.As|
|000001a0| 73 69 67 6e 73 20 73 70 | 65 63 20 69 6e 66 6f 20 |signs sp|ec info |
|000001b0| 66 6f 72 20 74 68 65 20 | 6e 65 78 74 20 66 69 6c |for the |next fil|
|000001c0| 65 20 69 6e 20 74 68 65 | 20 64 69 72 20 73 70 65 |e in the| dir spe|
|000001d0| 63 69 66 69 65 64 20 62 | 79 20 3c 66 6f 6c 64 65 |cified b|y <folde|
|000001e0| 72 53 70 65 63 3e 2e 20 | 20 49 66 20 74 68 65 20 |rSpec>. | If the |
|000001f0| 64 69 72 65 63 74 6f 72 | 79 20 64 6f 65 73 6e 27 |director|y doesn'|
|00000200| 74 20 65 78 69 73 74 20 | 6f 72 20 74 68 65 72 65 |t exist |or there|
|00000210| 0d 09 09 2f 2f 09 09 09 | 61 72 65 6e 27 74 20 61 |...//...|aren't a|
|00000220| 6e 79 20 6d 6f 72 65 20 | 66 69 6c 65 73 2c 20 3c |ny more |files, <|
|00000230| 66 61 6c 73 65 3e 20 69 | 73 20 72 65 74 75 72 6e |false> i|s return|
|00000240| 65 64 2e 20 20 49 66 20 | 61 20 6e 65 78 74 20 66 |ed. If |a next f|
|00000250| 69 6c 65 20 69 73 20 66 | 6f 75 6e 64 2c 20 3c 74 |ile is f|ound, <t|
|00000260| 72 75 65 3e 20 69 73 20 | 72 65 74 75 72 6e 65 64 |rue> is |returned|
|00000270| 20 61 6e 64 20 3c 6f 75 | 74 53 70 65 63 3e 20 63 | and <ou|tSpec> c|
|00000280| 6f 6e 74 61 69 6e 73 20 | 61 20 73 70 65 63 20 74 |ontains |a spec t|
|00000290| 6f 20 74 68 61 74 20 66 | 69 6c 65 2e 0d 09 09 2f |o that f|ile..../|
|000002a0| 2f 09 09 09 49 66 20 69 | 6e 46 6f 6c 64 65 72 73 |/...If i|nFolders|
|000002b0| 20 69 73 20 74 72 75 65 | 2c 20 6f 6e 6c 79 20 66 | is true|, only f|
|000002c0| 6f 6c 64 65 72 73 20 61 | 72 65 20 72 65 74 75 6e |olders a|re retun|
|000002d0| 65 64 0d 09 09 73 74 61 | 74 69 63 20 62 6f 6f 6c |ed...sta|tic bool|
|000002e0| 09 09 09 09 09 47 65 74 | 4e 65 78 74 46 69 6c 65 |.....Get|NextFile|
|000002f0| 28 20 63 6f 6e 73 74 20 | 43 45 67 46 69 6c 65 53 |( const |CEgFileS|
|00000300| 70 65 63 26 20 66 6f 6c | 64 65 72 53 70 65 63 2c |pec& fol|derSpec,|
|00000310| 20 43 45 67 46 69 6c 65 | 53 70 65 63 26 20 6f 75 | CEgFile|Spec& ou|
|00000320| 74 53 70 65 63 2c 20 62 | 6f 6f 6c 20 69 6e 53 74 |tSpec, b|ool inSt|
|00000330| 61 72 74 4f 76 65 72 2c | 20 62 6f 6f 6c 20 69 6e |artOver,| bool in|
|00000340| 46 6f 6c 64 65 72 73 20 | 29 3b 0d 09 0d 09 09 2f |Folders |);...../|
|00000350| 2f 09 09 09 41 66 74 65 | 72 20 49 6e 69 74 69 61 |/...Afte|r Initia|
|00000360| 6c 69 7a 65 2c 20 74 68 | 65 73 65 20 63 6f 6e 74 |lize, th|ese cont|
|00000370| 61 69 6e 20 74 68 65 20 | 73 63 72 65 65 6e 20 70 |ain the |screen p|
|00000380| 69 78 65 6c 73 20 70 65 | 72 20 69 6e 63 68 0d 09 |ixels pe|r inch..|
|00000390| 09 73 74 61 74 69 63 20 | 69 6e 74 09 09 09 09 09 |.static |int.....|
|000003a0| 73 58 64 70 69 3b 0d 09 | 09 73 74 61 74 69 63 20 |sXdpi;..|.static |
|000003b0| 69 6e 74 09 09 09 09 09 | 73 59 64 70 69 3b 0d 09 |int.....|sYdpi;..|
|000003c0| 09 0d 09 09 2f 2f 20 09 | 50 6f 73 74 3a 09 54 68 |....// .|Post:.Th|
|000003d0| 69 73 20 73 74 61 74 69 | 63 20 6d 65 74 68 6f 64 |is stati|c method|
|000003e0| 20 77 69 6c 6c 20 64 69 | 73 70 6c 61 79 20 74 68 | will di|splay th|
|000003f0| 65 20 67 69 76 65 6e 20 | 43 20 73 74 72 69 6e 67 |e given |C string|
|00000400| 20 69 6e 20 61 20 77 69 | 6e 64 6f 77 20 77 69 74 | in a wi|ndow wit|
|00000410| 68 20 61 6e 20 4f 4b 20 | 62 75 74 74 6f 6e 2e 0d |h an OK |button..|
|00000420| 09 09 73 74 61 74 69 63 | 20 76 6f 69 64 09 09 09 |..static| void...|
|00000430| 09 09 53 68 6f 77 4d 73 | 67 28 20 63 6f 6e 73 74 |..ShowMs|g( const|
|00000440| 20 63 68 61 72 2a 20 69 | 6e 4d 73 67 20 29 3b 0d | char* i|nMsg );.|
|00000450| 09 09 73 74 61 74 69 63 | 20 76 6f 69 64 09 09 09 |..static| void...|
|00000460| 09 09 53 68 6f 77 4d 73 | 67 28 20 63 6f 6e 73 74 |..ShowMs|g( const|
|00000470| 20 55 74 69 6c 53 74 72 | 26 20 69 6e 4d 73 67 20 | UtilStr|& inMsg |
|00000480| 29 3b 0d 09 09 0d 09 09 | 2f 2f 09 50 6f 73 74 3a |);......|//.Post:|
|00000490| 09 50 72 69 6e 74 73 20 | 3c 69 6e 4d 73 67 3e 20 |.Prints |<inMsg> |
|000004a0| 69 6e 20 61 20 64 69 61 | 6c 6f 67 20 62 6f 78 20 |in a dia|log box |
|000004b0| 77 69 74 68 20 61 6e 20 | 22 4f 4b 22 20 62 75 74 |with an |"OK" but|
|000004c0| 74 6f 6e 20 61 6e 64 20 | 61 20 22 63 61 6e 63 65 |ton and |a "cance|
|000004d0| 6c 22 20 62 75 74 74 6f | 6e 2e 20 20 3c 74 72 75 |l" butto|n. <tru|
|000004e0| 65 3e 0d 09 09 2f 2f 09 | 09 09 69 73 20 72 65 74 |e>...//.|..is ret|
|000004f0| 75 72 6e 65 64 20 69 66 | 20 74 68 65 20 75 73 65 |urned if| the use|
|00000500| 20 73 65 6c 65 63 74 73 | 20 74 68 65 20 22 4f 4b | selects| the "OK|
|00000510| 22 20 62 75 74 74 6f 6e | 0d 09 09 73 74 61 74 69 |" button|...stati|
|00000520| 63 20 62 6f 6f 6c 09 09 | 09 09 09 41 72 65 59 6f |c bool..|...AreYo|
|00000530| 75 53 75 72 65 28 20 63 | 6f 6e 73 74 20 55 74 69 |uSure( c|onst Uti|
|00000540| 6c 53 74 72 26 20 69 6e | 4d 73 67 20 29 3b 0d 09 |lStr& in|Msg );..|
|00000550| 09 73 74 61 74 69 63 20 | 62 6f 6f 6c 09 09 09 09 |.static |bool....|
|00000560| 09 41 72 65 59 6f 75 53 | 75 72 65 28 20 63 6f 6e |.AreYouS|ure( con|
|00000570| 73 74 20 63 68 61 72 2a | 20 69 6e 4d 73 67 20 29 |st char*| inMsg )|
|00000580| 3b 0d 09 09 0d 09 09 2f | 2f 09 50 6f 73 74 3a 09 |;....../|/.Post:.|
|00000590| 41 73 6b 73 20 22 53 61 | 76 65 20 63 68 61 6e 67 |Asks "Sa|ve chang|
|000005a0| 65 73 20 74 6f 20 27 3c | 69 6e 4e 61 6d 65 3e 27 |es to '<|inName>'|
|000005b0| 20 62 65 66 6f 72 65 20 | 63 6c 6f 73 69 6e 67 3f | before |closing?|
|000005c0| 22 0d 09 09 2f 2f 09 4e | 6f 74 65 3a 09 52 65 74 |"...//.N|ote:.Ret|
|000005d0| 75 72 6e 73 20 09 30 20 | 69 66 20 43 61 6e 63 65 |urns .0 |if Cance|
|000005e0| 6c 20 62 75 74 74 6f 6e | 2c 20 31 20 66 6f 72 20 |l button|, 1 for |
|000005f0| 4f 4b 2c 20 61 6e 64 20 | 2d 31 20 66 6f 72 20 44 |OK, and |-1 for D|
|00000600| 6f 6e 27 74 20 53 61 76 | 65 0d 09 09 73 74 61 74 |on't Sav|e...stat|
|00000610| 69 63 20 69 6e 74 09 09 | 09 09 09 41 73 6b 53 61 |ic int..|...AskSa|
|00000620| 76 65 43 68 61 6e 67 65 | 73 28 20 63 6f 6e 73 74 |veChange|s( const|
|00000630| 20 55 74 69 6c 53 74 72 | 26 20 69 6e 4e 61 6d 65 | UtilStr|& inName|
|00000640| 20 29 3b 0d 09 09 73 74 | 61 74 69 63 20 69 6e 74 | );...st|atic int|
|00000650| 09 09 09 09 09 41 73 6b | 53 61 76 65 43 68 61 6e |.....Ask|SaveChan|
|00000660| 67 65 73 28 20 63 6f 6e | 73 74 20 63 68 61 72 2a |ges( con|st char*|
|00000670| 20 69 6e 4e 61 6d 65 20 | 29 3b 0d 09 0d 09 09 2f | inName |);...../|
|00000680| 2f 09 50 6f 73 74 3a 09 | 57 69 74 68 20 74 68 65 |/.Post:.|With the|
|00000690| 20 66 69 6c 65 20 64 69 | 61 6c 6f 67 2c 20 74 68 | file di|alog, th|
|000006a0| 69 73 20 70 72 6f 6d 70 | 74 73 20 74 68 65 20 75 |is promp|ts the u|
|000006b0| 73 65 72 20 66 6f 72 20 | 61 20 66 69 6c 65 20 6e |ser for |a file n|
|000006c0| 61 6d 65 2c 20 65 74 63 | 2e 20 20 49 66 20 74 68 |ame, etc|. If th|
|000006d0| 65 20 66 75 6e 63 20 72 | 65 74 75 72 6e 73 20 3c |e func r|eturns <|
|000006e0| 74 72 75 65 3e 2c 0d 09 | 09 2f 2f 09 09 09 3c 6f |true>,..|.//...<o|
|000006f0| 75 74 53 70 65 63 3e 20 | 63 6f 6e 74 61 69 6e 73 |utSpec> |contains|
|00000700| 20 74 68 65 20 66 69 6c | 65 20 73 70 65 63 20 74 | the fil|e spec t|
|00000710| 68 65 20 75 73 65 72 20 | 6a 75 73 74 20 65 6e 74 |he user |just ent|
|00000720| 65 72 65 64 0d 09 09 73 | 74 61 74 69 63 20 62 6f |ered...s|tatic bo|
|00000730| 6f 6c 09 09 09 09 09 41 | 73 6b 53 61 76 65 41 73 |ol.....A|skSaveAs|
|00000740| 28 20 63 6f 6e 73 74 20 | 63 68 61 72 2a 20 69 6e |( const |char* in|
|00000750| 50 72 6f 6d 70 74 2c 20 | 63 6f 6e 73 74 20 55 74 |Prompt, |const Ut|
|00000760| 69 6c 53 74 72 26 20 69 | 6e 44 65 66 61 75 6c 74 |ilStr& i|nDefault|
|00000770| 4e 61 6d 65 2c 20 43 45 | 67 46 69 6c 65 53 70 65 |Name, CE|gFileSpe|
|00000780| 63 26 20 6f 75 74 53 70 | 65 63 2c 20 6c 6f 6e 67 |c& outSp|ec, long|
|00000790| 20 69 6e 46 69 6c 65 54 | 79 70 65 20 3d 20 30 20 | inFileT|ype = 0 |
|000007a0| 29 3b 0d 09 09 73 74 61 | 74 69 63 20 62 6f 6f 6c |);...sta|tic bool|
|000007b0| 09 09 09 09 09 41 73 6b | 53 61 76 65 41 73 28 20 |.....Ask|SaveAs( |
|000007c0| 63 6f 6e 73 74 20 63 68 | 61 72 2a 20 69 6e 50 72 |const ch|ar* inPr|
|000007d0| 6f 6d 70 74 2c 20 63 6f | 6e 73 74 20 63 68 61 72 |ompt, co|nst char|
|000007e0| 2a 20 69 6e 44 65 66 61 | 75 6c 74 4e 61 6d 65 2c |* inDefa|ultName,|
|000007f0| 20 43 45 67 46 69 6c 65 | 53 70 65 63 26 20 6f 75 | CEgFile|Spec& ou|
|00000800| 74 53 70 65 63 2c 20 6c | 6f 6e 67 20 69 6e 46 69 |tSpec, l|ong inFi|
|00000810| 6c 65 54 79 70 65 20 3d | 20 30 20 29 3b 0d 09 0d |leType =| 0 );...|
|00000820| 09 09 2f 2f 09 50 6f 73 | 74 3a 09 57 69 74 68 20 |..//.Pos|t:.With |
|00000830| 74 68 65 20 66 69 6c 65 | 20 64 69 61 6c 6f 67 2c |the file| dialog,|
|00000840| 20 74 68 69 73 20 70 72 | 6f 6d 70 74 73 20 74 68 | this pr|ompts th|
|00000850| 65 20 75 73 65 72 20 74 | 6f 20 73 65 6c 65 63 74 |e user t|o select|
|00000860| 20 61 20 66 69 6c 65 2e | 2e 20 20 49 66 20 74 68 | a file.|. If th|
|00000870| 65 20 66 75 6e 63 20 72 | 65 74 75 72 6e 73 20 3c |e func r|eturns <|
|00000880| 74 72 75 65 3e 2c 0d 09 | 09 2f 2f 09 09 09 3c 6f |true>,..|.//...<o|
|00000890| 75 74 53 70 65 63 3e 20 | 63 6f 6e 74 61 69 6e 73 |utSpec> |contains|
|000008a0| 20 74 68 65 20 66 69 6c | 65 20 73 70 65 63 20 74 | the fil|e spec t|
|000008b0| 68 65 20 75 73 65 72 20 | 6a 75 73 74 20 65 6e 74 |he user |just ent|
|000008c0| 65 72 65 64 2e 0d 09 09 | 2f 2f 09 4e 6f 74 65 3a |ered....|//.Note:|
|000008d0| 09 4f 6e 6c 79 20 66 69 | 6c 65 20 6f 66 20 74 79 |.Only fi|le of ty|
|000008e0| 70 65 20 3c 69 6e 46 69 | 6c 65 54 79 70 65 3e 20 |pe <inFi|leType> |
|000008f0| 61 72 65 20 76 69 73 69 | 62 6c 65 2e 20 5a 65 72 |are visi|ble. Zer|
|00000900| 6f 20 6d 65 61 6e 73 20 | 74 6f 20 61 63 63 65 70 |o means |to accep|
|00000910| 74 20 61 6c 6c 20 66 69 | 6c 65 73 20 74 79 70 65 |t all fi|les type|
|00000920| 73 2e 0d 09 09 73 74 61 | 74 69 63 20 62 6f 6f 6c |s....sta|tic bool|
|00000930| 09 09 09 09 09 41 73 6b | 4f 70 65 6e 28 20 63 6f |.....Ask|Open( co|
|00000940| 6e 73 74 20 63 68 61 72 | 2a 20 69 6e 50 72 6f 6d |nst char|* inProm|
|00000950| 70 74 2c 20 43 45 67 46 | 69 6c 65 53 70 65 63 26 |pt, CEgF|ileSpec&|
|00000960| 20 6f 75 74 53 70 65 63 | 2c 20 6c 6f 6e 67 20 69 | outSpec|, long i|
|00000970| 6e 46 69 6c 65 54 79 70 | 65 20 3d 20 30 20 29 3b |nFileTyp|e = 0 );|
|00000980| 0d 0d 09 09 2f 2f 09 50 | 6f 73 74 3a 09 50 75 74 |....//.P|ost:.Put|
|00000990| 73 20 74 68 65 20 65 72 | 72 6f 72 20 6d 65 73 73 |s the er|ror mess|
|000009a0| 61 67 65 20 69 6e 20 61 | 20 6d 65 73 73 61 67 65 |age in a| message|
|000009b0| 20 62 6f 78 20 6f 6e 20 | 74 68 65 20 73 63 72 65 | box on |the scre|
|000009c0| 65 6e 2c 20 73 61 79 69 | 6e 67 20 0d 09 09 2f 2f |en, sayi|ng ...//|
|000009d0| 09 09 09 22 45 72 72 6f | 72 20 72 65 61 64 69 6e |..."Erro|r readin|
|000009e0| 67 2f 77 72 69 74 69 6e | 67 20 22 69 6e 4e 61 6d |g/writin|g "inNam|
|000009f0| 65 22 20 2d 2d 20 69 6e | 45 72 72 4d 73 67 0d 09 |e" -- in|ErrMsg..|
|00000a00| 09 2f 2f 09 09 09 3c 77 | 61 73 52 65 61 64 69 6e |.//...<w|asReadin|
|00000a10| 67 3e 20 64 65 74 65 72 | 6d 69 6e 65 73 20 63 68 |g> deter|mines ch|
|00000a20| 6f 6f 73 65 73 20 74 68 | 65 20 77 6f 72 64 20 22 |ooses th|e word "|
|00000a30| 72 65 61 64 69 6e 67 22 | 20 76 73 2e 20 22 77 72 |reading"| vs. "wr|
|00000a40| 69 74 69 6e 67 22 0d 09 | 09 73 74 61 74 69 63 20 |iting"..|.static |
|00000a50| 76 6f 69 64 09 09 09 09 | 09 53 68 6f 77 46 69 6c |void....|.ShowFil|
|00000a60| 65 45 72 72 28 20 63 6f | 6e 73 74 20 55 74 69 6c |eErr( co|nst Util|
|00000a70| 53 74 72 2a 20 69 6e 4e | 61 6d 65 2c 20 43 45 67 |Str* inN|ame, CEg|
|00000a80| 45 72 72 26 20 69 6e 45 | 72 72 2c 20 09 09 09 62 |Err& inE|rr, ...b|
|00000a90| 6f 6f 6c 20 77 61 73 52 | 65 61 64 69 6e 67 20 29 |ool wasR|eading )|
|00000aa0| 3b 0d 09 09 73 74 61 74 | 69 63 20 76 6f 69 64 09 |;...stat|ic void.|
|00000ab0| 09 09 09 09 53 68 6f 77 | 46 69 6c 65 45 72 72 28 |....Show|FileErr(|
|00000ac0| 20 63 6f 6e 73 74 20 55 | 74 69 6c 53 74 72 2a 20 | const U|tilStr* |
|00000ad0| 69 6e 4e 61 6d 65 2c 20 | 63 68 61 72 2a 20 69 6e |inName, |char* in|
|00000ae0| 45 72 72 4d 73 67 2c 20 | 09 09 62 6f 6f 6c 20 77 |ErrMsg, |..bool w|
|00000af0| 61 73 52 65 61 64 69 6e | 67 20 29 3b 0d 09 09 73 |asReadin|g );...s|
|00000b00| 74 61 74 69 63 20 76 6f | 69 64 09 09 09 09 09 53 |tatic vo|id.....S|
|00000b10| 68 6f 77 46 69 6c 65 45 | 72 72 28 20 63 6f 6e 73 |howFileE|rr( cons|
|00000b20| 74 20 43 45 67 46 69 6c | 65 53 70 65 63 26 20 69 |t CEgFil|eSpec& i|
|00000b30| 6e 46 69 6c 65 53 70 65 | 63 2c 20 43 45 67 45 72 |nFileSpe|c, CEgEr|
|00000b40| 72 26 20 69 6e 45 72 72 | 2c 09 62 6f 6f 6c 20 77 |r& inErr|,.bool w|
|00000b50| 61 73 52 65 61 64 69 6e | 67 20 29 3b 0d 0d 09 09 |asReadin|g );....|
|00000b60| 2f 2f 09 50 6f 73 74 3a | 09 4d 61 6b 65 73 20 74 |//.Post:|.Makes t|
|00000b70| 68 65 20 63 6f 6d 70 75 | 74 65 72 20 62 65 65 70 |he compu|ter beep|
|00000b80| 09 0d 09 09 73 74 61 74 | 69 63 20 76 6f 69 64 09 |....stat|ic void.|
|00000b90| 09 09 09 09 42 65 65 70 | 28 29 3b 0d 09 09 0d 09 |....Beep|();.....|
|00000ba0| 09 2f 2f 09 50 72 65 3a | 09 44 65 73 69 67 6e 65 |.//.Pre:|.Designe|
|00000bb0| 64 20 74 6f 20 62 65 20 | 63 61 6c 6c 65 64 20 63 |d to be |called c|
|00000bc0| 6f 6e 74 69 6e 6f 75 73 | 6c 79 20 64 75 72 69 6e |ontinous|ly durin|
|00000bd0| 67 20 61 20 6c 6f 6e 67 | 20 70 72 6f 63 65 73 73 |g a long| process|
|00000be0| 2e 0d 09 09 2f 2f 09 50 | 6f 73 74 3a 09 44 69 73 |....//.P|ost:.Dis|
|00000bf0| 70 6c 61 79 73 20 61 20 | 73 70 69 6e 6e 69 6e 67 |plays a |spinning|
|00000c00| 20 63 75 72 6f 72 20 61 | 66 74 65 72 20 61 20 63 | curor a|fter a c|
|00000c10| 65 72 74 61 69 6e 20 70 | 65 72 69 6f 64 20 6f 66 |ertain p|eriod of|
|00000c20| 20 74 69 6d 65 2e 0d 09 | 09 73 74 61 74 69 63 20 | time...|.static |
|00000c30| 76 6f 69 64 09 09 09 09 | 09 53 70 69 6e 43 75 72 |void....|.SpinCur|
|00000c40| 73 6f 72 28 29 3b 0d 09 | 09 0d 09 09 2f 2f 09 50 |sor();..|....//.P|
|00000c50| 6f 73 74 3a 09 43 61 6c | 6c 20 74 68 69 73 20 74 |ost:.Cal|l this t|
|00000c60| 6f 20 72 65 73 74 6f 72 | 65 20 74 68 65 20 63 75 |o restor|e the cu|
|00000c70| 72 73 6f 72 20 69 66 20 | 69 74 27 73 20 62 65 65 |rsor if |it's bee|
|00000c80| 6e 20 61 6c 74 65 72 65 | 64 20 28 69 65 2c 20 61 |n altere|d (ie, a|
|00000c90| 66 74 65 72 20 61 20 53 | 70 69 6e 43 75 72 73 6f |fter a S|pinCurso|
|00000ca0| 72 29 2e 0d 09 09 2f 2f | 09 4e 6f 74 65 3a 09 49 |r)....//|.Note:.I|
|00000cb0| 66 20 54 68 69 73 20 70 | 72 6f 63 20 69 73 20 69 |f This p|roc is i|
|00000cc0| 6e 73 74 61 6c 6c 65 64 | 20 69 6e 20 74 68 65 20 |nstalled| in the |
|00000cd0| 6d 61 69 6e 20 65 76 65 | 6e 74 20 6c 6f 6f 70 2c |main eve|nt loop,|
|00000ce0| 20 79 6f 75 20 63 61 6e | 20 63 61 6c 6c 20 53 70 | you can| call Sp|
|00000cf0| 69 6e 43 75 72 73 6f 72 | 28 29 20 77 68 65 6e 65 |inCursor|() whene|
|00000d00| 76 65 72 20 74 68 69 6e | 67 73 20 61 72 65 20 69 |ver thin|gs are i|
|00000d10| 6e 74 65 6e 73 69 76 65 | 0d 09 09 73 74 61 74 69 |ntensive|...stati|
|00000d20| 63 20 76 6f 69 64 09 09 | 09 09 09 52 65 73 65 74 |c void..|...Reset|
|00000d30| 43 75 72 73 6f 72 28 29 | 09 09 09 09 09 09 09 09 |Cursor()|........|
|00000d40| 09 09 09 09 7b 20 69 66 | 20 28 20 73 4c 61 73 74 |....{ if| ( sLast|
|00000d50| 43 75 72 73 6f 72 20 3e | 3d 20 30 20 29 20 45 67 |Cursor >|= 0 ) Eg|
|00000d60| 4f 53 55 74 69 6c 73 3a | 3a 53 68 6f 77 43 75 72 |OSUtils:|:ShowCur|
|00000d70| 73 6f 72 28 29 3b 20 20 | 7d 0d 09 09 0d 09 09 2f |sor(); |}....../|
|00000d80| 2f 20 09 50 6f 73 74 3a | 09 48 69 64 65 73 2f 53 |/ .Post:|.Hides/S|
|00000d90| 68 6f 77 73 20 74 68 65 | 20 6d 6f 75 73 65 20 63 |hows the| mouse c|
|00000da0| 75 72 73 6f 72 2e 0d 09 | 09 73 74 61 74 69 63 20 |ursor...|.static |
|00000db0| 76 6f 69 64 09 09 09 09 | 09 53 68 6f 77 43 75 72 |void....|.ShowCur|
|00000dc0| 73 6f 72 28 29 3b 0d 09 | 09 73 74 61 74 69 63 20 |sor();..|.static |
|00000dd0| 76 6f 69 64 09 09 09 09 | 09 48 69 64 65 43 75 72 |void....|.HideCur|
|00000de0| 73 6f 72 28 29 3b 0d 09 | 09 0d 09 09 2f 2f 20 09 |sor();..|....// .|
|00000df0| 52 65 74 75 72 6e 73 20 | 74 68 65 20 63 75 72 72 |Returns |the curr|
|00000e00| 65 6e 74 20 74 69 6d 65 | 20 69 6e 20 6d 69 6c 6c |ent time| in mill|
|00000e10| 69 73 65 63 6f 6e 64 73 | 20 73 69 6e 63 65 20 74 |iseconds| since t|
|00000e20| 68 65 20 73 79 73 74 65 | 6d 20 73 74 61 72 74 2e |he syste|m start.|
|00000e30| 0d 09 09 73 74 61 74 69 | 63 20 6c 6f 6e 67 09 09 |...stati|c long..|
|00000e40| 09 09 09 43 75 72 54 69 | 6d 65 4d 53 28 29 3b 0d |...CurTi|meMS();.|
|00000e50| 09 09 0d 09 09 2f 2f 09 | 52 65 74 75 72 6e 73 20 |.....//.|Returns |
|00000e60| 74 68 65 20 67 6c 6f 62 | 61 6c 20 63 6f 72 64 73 |the glob|al cords|
|00000e70| 20 6f 66 20 74 68 65 20 | 6d 6f 75 73 65 0d 09 09 | of the |mouse...|
|00000e80| 73 74 61 74 69 63 20 76 | 6f 69 64 09 09 09 09 09 |static v|oid.....|
|00000e90| 47 65 74 4d 6f 75 73 65 | 28 20 50 6f 69 6e 74 26 |GetMouse|( Point&|
|00000ea0| 20 6f 75 74 50 74 20 29 | 3b 0d 09 09 0d 09 09 2f | outPt )|;....../|
|00000eb0| 2f 09 50 6f 73 74 3a 09 | 52 65 74 75 72 6e 73 20 |/.Post:.|Returns |
|00000ec0| 61 20 72 61 6e 64 6f 6d | 20 6e 75 6d 62 65 72 20 |a random| number |
|00000ed0| 66 72 6f 6d 20 3c 6d 69 | 6e 3e 20 74 6f 20 3c 6d |from <mi|n> to <m|
|00000ee0| 61 78 3e 2c 20 69 6e 63 | 6c 75 73 69 76 65 2e 0d |ax>, inc|lusive..|
|00000ef0| 09 09 73 74 61 74 69 63 | 20 6c 6f 6e 67 20 09 09 |..static| long ..|
|00000f00| 09 09 52 6e 64 28 20 6c | 6f 6e 67 20 6d 69 6e 2c |..Rnd( l|ong min,|
|00000f10| 20 6c 6f 6e 67 20 6d 61 | 78 20 29 3b 0d 09 09 0d | long ma|x );....|
|00000f20| 09 09 2f 2f 09 50 6f 73 | 74 3a 09 52 65 76 65 72 |..//.Pos|t:.Rever|
|00000f30| 73 65 73 20 74 68 65 20 | 62 79 74 65 20 6f 72 64 |ses the |byte ord|
|00000f40| 65 72 20 6f 66 20 74 68 | 65 20 67 69 76 65 6e 20 |er of th|e given |
|00000f50| 6c 6f 6e 67 0d 09 09 73 | 74 61 74 69 63 20 75 6e |long...s|tatic un|
|00000f60| 73 69 67 6e 65 64 20 6c | 6f 6e 67 09 09 52 65 76 |signed l|ong..Rev|
|00000f70| 42 79 74 65 73 28 20 75 | 6e 73 69 67 6e 65 64 20 |Bytes( u|nsigned |
|00000f80| 6c 6f 6e 67 20 69 6e 4e | 75 6d 20 29 3b 0d 09 09 |long inN|um );...|
|00000f90| 0d 09 09 2f 2f 20 49 73 | 20 74 68 65 20 64 69 72 |...// Is| the dir|
|00000fa0| 65 63 74 6f 72 79 2f 66 | 6f 6c 64 65 72 20 6f 66 |ectory/f|older of|
|00000fb0| 20 74 68 69 73 20 61 70 | 70 2f 6c 69 62 0d 09 09 | this ap|p/lib...|
|00000fc0| 73 74 61 74 69 63 20 43 | 45 67 46 69 6c 65 53 70 |static C|EgFileSp|
|00000fd0| 65 63 09 09 09 73 41 70 | 70 53 70 65 63 3b 0d 09 |ec...sAp|pSpec;..|
|00000fe0| 09 0d 09 70 72 6f 74 65 | 63 74 65 64 3a 0d 09 09 |...prote|cted:...|
|00000ff0| 73 74 61 74 69 63 20 6c | 6f 6e 67 09 09 09 09 09 |static l|ong.....|
|00001000| 73 4c 61 73 74 43 75 72 | 73 6f 72 3b 0d 09 09 73 |sLastCur|sor;...s|
|00001010| 74 61 74 69 63 20 6c 6f | 6e 67 09 09 09 09 09 73 |tatic lo|ng.....s|
|00001020| 4c 61 73 74 43 75 72 73 | 6f 72 43 68 61 6e 67 65 |LastCurs|orChange|
|00001030| 3b 0d 0d 7d 3b 0d 0d 23 | 65 6e 64 69 66 00 00 00 |;..};..#|endif...|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001080| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00001090| e7 f3 99 f0 21 80 11 00 | 60 80 11 56 54 25 fb e0 |....!...|`..VT%..|
|000010a0| 0a fc c0 3e 52 5d fd 00 | 00 00 90 b2 18 4f e9 32 |...>R]..|.....O.2|
|000010b0| 0b 45 67 4f 53 55 74 69 | 6c 73 2e 68 70 70 65 76 |.EgOSUti|ls.hppev|
|000010c0| 65 72 27 73 54 77 69 73 | 74 2e 6d 70 33 70 33 6e |er'sTwis|t.mp3p3n|
|000010d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 b2 48 35 fa 00 00 | 00 00 00 00 01 9a 00 7f |...H5...|........|
|00001100| ff fd 50 cd a4 e4 50 b2 | 41 90 18 21 06 05 41 27 |..P...P.|A..!..A'|
|00001110| ff 67 ff ff fd 00 00 24 | 00 00 2f ff ff c2 01 0c |.g.....$|../.....|
|00001120| 84 90 86 64 92 4d 30 00 | 10 87 21 24 5f 00 cd 00 |...d.M0.|..!$_...|
|00001130| ff ff fb 03 80 8b 7e 00 | 00 02 00 12 00 01 18 ff |......~.|........|
|00001140| fb ef e0 42 48 00 41 00 | 00 80 01 6d fa 52 64 90 |...BH.A.|...m.Rd.|
|00001150| 3f fc 00 15 fd bf ff 00 | 00 01 50 b3 bc 42 90 b1 |?.......|..P..B..|
|00001160| 7f 93 e7 e1 06 02 7f f8 | 20 99 00 00 0a 00 00 1f |........| .......|
|00001170| ff ff ff ff ff c2 01 0c | 84 90 86 42 90 8f 30 01 |........|...B..0.|
|00001180| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 03 | 00 04 00 98 00 2a 02 5c |........|.....*.\|
|000011b0| 03 16 00 98 00 2a 02 5c | 03 16 b3 c8 e2 c1 00 00 |.....*.\|........|
|000011c0| 0c f9 00 00 0c f9 00 00 | 09 01 01 00 00 00 00 04 |........|........|
|000011d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000011e0| 00 00 00 46 05 aa 49 64 | 18 9c 00 00 00 1c 00 46 |...F..Id|.......F|
|000011f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00001200| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00001210| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00001220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+