home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / formexpnd / !FormExpnd / Procs < prev    next >
Unknown  |  1991-05-03  |  4.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% xdgMime image/x-tga default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0d 00 0a 0d f4 20 20 3e | 50 72 6f 63 73 0d 00 14 |..... >|Procs...|
|00000010| 05 3a 0d 00 1e 48 f4 20 | 20 54 68 65 73 65 20 72 |.:...H. | These r|
|00000020| 6f 75 74 69 6e 65 73 20 | 77 65 72 65 20 73 75 70 |outines |were sup|
|00000030| 6c 69 65 64 20 77 69 74 | 68 20 74 68 65 20 21 46 |lied wit|h the !F|
|00000040| 6f 72 6d 45 78 70 6e 64 | 20 76 31 2e 31 30 20 61 |ormExpnd| v1.10 a|
|00000050| 70 70 6c 69 63 61 74 69 | 6f 6e 0d 00 28 2d f4 20 |pplicati|on..(-. |
|00000060| 20 61 6e 64 20 61 72 65 | 20 63 6f 70 79 72 69 67 | and are| copyrig|
|00000070| 68 74 20 28 43 29 31 39 | 39 31 20 44 2e 52 2e 20 |ht (C)19|91 D.R. |
|00000080| 46 65 6e 6e 65 6d 61 0d | 00 32 05 3a 0d 00 3c 48 |Fennema.|.2.:..<H|
|00000090| f4 20 20 45 78 63 65 70 | 74 20 66 6f 72 20 74 68 |. Excep|t for th|
|000000a0| 65 20 74 77 6f 20 72 65 | 6d 20 73 74 61 74 65 6d |e two re|m statem|
|000000b0| 65 6e 74 73 20 61 62 6f | 76 65 20 61 6c 6c 20 6f |ents abo|ve all o|
|000000c0| 74 68 65 72 73 20 6d 61 | 79 20 62 65 20 64 65 6c |thers ma|y be del|
|000000d0| 65 74 65 64 0d 00 46 37 | f4 20 20 77 68 65 6e 20 |eted..F7|. when |
|000000e0| 79 6f 75 20 75 73 65 20 | 74 68 65 73 65 20 72 6f |you use |these ro|
|000000f0| 75 74 69 6e 65 73 20 69 | 6e 20 79 6f 75 72 20 6f |utines i|n your o|
|00000100| 77 6e 20 70 72 6f 67 72 | 61 6d 73 0d 00 50 05 3a |wn progr|ams..P.:|
|00000110| 0d 00 5a 38 f4 20 20 54 | 68 65 73 65 20 74 68 72 |..Z8. T|hese thr|
|00000120| 65 65 20 67 6c 6f 62 61 | 6c 20 76 61 72 69 61 62 |ee globa|l variab|
|00000130| 6c 65 20 6e 61 6d 65 73 | 20 6d 61 79 20 62 65 20 |le names| may be |
|00000140| 63 68 61 6e 67 65 64 2e | 0d 00 64 05 3a 0d 00 6e |changed.|..d.:..n|
|00000150| 4e f4 20 20 20 20 2d 41 | 70 70 6c 44 69 72 24 20 |N. -A|pplDir$ |
|00000160| 20 61 20 73 74 72 69 6e | 67 20 63 6f 6e 74 61 69 | a strin|g contai|
|00000170| 6e 69 6e 67 20 74 68 65 | 20 72 6f 6f 74 20 64 69 |ning the| root di|
|00000180| 72 65 63 74 6f 72 79 20 | 6f 66 20 74 68 65 20 61 |rectory |of the a|
|00000190| 70 70 6c 69 63 61 74 69 | 6f 6e 2c 0d 00 78 4f f4 |pplicati|on,..xO.|
|000001a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 74 | | t|
|000001b0| 68 69 73 20 6d 61 79 20 | 62 65 20 61 20 73 79 73 |his may |be a sys|
|000001c0| 74 65 6d 20 76 61 72 69 | 61 62 6c 65 20 6e 61 6d |tem vari|able nam|
|000001d0| 65 20 6c 69 6b 65 20 22 | 3c 41 70 70 6c 69 63 61 |e like "|<Applica|
|000001e0| 74 69 6f 6e 24 44 69 72 | 3e 22 0d 00 82 3d f4 20 |tion$Dir|>"...=. |
|000001f0| 20 20 20 2d 53 70 72 69 | 74 65 73 25 20 20 61 20 | -Spri|tes% a |
|00000200| 70 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 65 20 61 |pointer |to the a|
|00000210| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 73 70 72 69 |pplicati|ons spri|
|00000220| 74 65 20 70 6f 6f 6c 0d | 00 8c 47 f4 20 20 20 20 |te pool.|..G. |
|00000230| 2d 74 65 78 74 5f 62 75 | 66 25 20 61 20 70 6f 69 |-text_bu|f% a poi|
|00000240| 6e 74 65 72 20 74 6f 20 | 61 20 62 6c 6f 63 6b 20 |nter to |a block |
|00000250| 6f 66 20 6d 65 6d 6f 72 | 79 20 66 6f 72 20 67 65 |of memor|y for ge|
|00000260| 6e 65 72 61 6c 20 74 65 | 78 74 20 75 73 65 0d 00 |neral te|xt use..|
|00000270| 96 05 f4 0d 00 a0 05 3a | 0d 00 aa 05 3a 0d 00 b4 |.......:|....:...|
|00000280| 52 f4 20 20 54 65 6d 70 | 6c 61 74 65 49 6e 69 74 |R. Temp|lateInit|
|00000290| 20 69 73 20 61 20 72 6f | 75 74 69 6e 65 20 74 68 | is a ro|utine th|
|000002a0| 61 74 20 49 20 75 73 65 | 20 6d 79 73 65 6c 66 20 |at I use| myself |
|000002b0| 69 6e 20 6f 6e 65 20 6f | 66 20 6d 79 20 70 72 6f |in one o|f my pro|
|000002c0| 67 72 61 6d 73 20 79 6f | 75 20 64 6f 6e 27 74 0d |grams yo|u don't.|
|000002d0| 00 be 24 f4 20 20 68 61 | 76 65 20 74 6f 20 75 73 |..$. ha|ve to us|
|000002e0| 65 20 69 74 2c 20 62 75 | 74 20 77 6f 72 6b 73 20 |e it, bu|t works |
|000002f0| 6f 6b 2e 0d 00 c8 05 3a | 0d 00 d2 32 f4 20 20 46 |ok.....:|...2. F|
|00000300| 69 72 73 74 20 69 74 20 | 6c 6f 61 64 73 20 61 6e |irst it |loads an|
|00000310| 64 20 61 64 6a 75 73 74 | 20 74 68 65 20 74 65 6d |d adjust| the tem|
|00000320| 70 6c 61 74 65 20 66 69 | 6c 65 0d 00 dc 05 3a 0d |plate fi|le....:.|
|00000330| 00 e6 31 f4 20 20 49 74 | 20 63 72 65 61 74 65 73 |..1. It| creates|
|00000340| 20 74 68 72 65 65 20 62 | 6c 6f 63 6b 73 20 6f 66 | three b|locks of|
|00000350| 20 6d 65 6d 6f 72 79 2c | 20 63 61 6c 6c 65 64 3a | memory,| called:|
|00000360| 0d 00 f0 40 f4 20 20 20 | 20 57 64 65 66 25 20 20 |...@. | Wdef% |
|00000370| 20 20 20 74 68 69 73 20 | 68 6f 6c 64 73 20 70 6f | this |holds po|
|00000380| 69 6e 74 65 72 73 20 74 | 6f 20 74 68 65 20 77 69 |inters t|o the wi|
|00000390| 6e 64 6f 77 20 64 65 66 | 69 6e 69 74 69 6f 6e 73 |ndow def|initions|
|000003a0| 0d 00 fa 4a f4 20 20 20 | 20 57 68 61 6e 64 6c 65 |...J. | Whandle|
|000003b0| 25 20 20 74 68 69 73 20 | 68 6f 6c 64 73 20 74 68 |% this |holds th|
|000003c0| 65 20 77 69 6e 64 6f 77 | 20 68 61 6e 64 6c 65 73 |e window| handles|
|000003d0| 20 6f 66 20 77 69 6e 64 | 6f 77 73 20 74 68 61 74 | of wind|ows that|
|000003e0| 20 68 61 76 65 20 62 65 | 65 6e 0d 01 04 1a f4 20 | have be|en..... |
|000003f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 72 65 | | cre|
|00000400| 61 74 65 64 0d 01 0e 4e | f4 20 20 20 20 57 73 74 |ated...N|. Wst|
|00000410| 61 74 65 25 20 20 20 74 | 68 69 73 20 68 6f 6c 64 |ate% t|his hold|
|00000420| 73 20 61 20 6e 6f 6e 65 | 20 7a 65 72 6f 20 76 61 |s a none| zero va|
|00000430| 6c 75 65 20 69 66 20 74 | 68 65 20 77 69 6e 64 6f |lue if t|he windo|
|00000440| 77 20 68 61 73 20 62 65 | 65 6e 20 63 72 65 61 74 |w has be|en creat|
|00000450| 65 64 0d 01 18 2a f4 20 | 20 20 20 20 20 20 20 20 |ed...*. | |
|00000460| 20 20 20 20 20 61 6e 64 | 20 7a 65 72 6f 20 77 68 | and| zero wh|
|00000470| 65 6e 20 69 74 20 68 61 | 73 6e 27 74 0d 01 22 05 |en it ha|sn't..".|
|00000480| 3a 0d 01 2c 3b f4 20 20 | 49 74 20 66 69 6c 6c 73 |:..,;. |It fills|
|00000490| 20 74 68 65 20 57 73 74 | 61 74 65 25 20 61 6e 64 | the Wst|ate% and|
|000004a0| 20 57 68 61 6e 64 6c 65 | 25 20 62 6c 6f 63 6b 73 | Whandle|% blocks|
|000004b0| 20 77 69 74 68 20 7a 65 | 72 6f 27 73 0d 01 36 05 | with ze|ro's..6.|
|000004c0| 3a 0d 01 40 4f f4 20 20 | 4d 65 61 6e 69 6e 67 66 |:..@O. |Meaningf|
|000004d0| 75 6c 6c 20 76 61 72 69 | 61 62 6c 65 73 20 61 72 |ull vari|ables ar|
|000004e0| 65 20 63 72 65 61 74 65 | 64 20 74 6f 20 68 6f 6c |e create|d to hol|
|000004f0| 64 20 61 20 74 65 6d 70 | 6c 61 74 65 27 73 20 72 |d a temp|late's r|
|00000500| 65 66 65 72 65 6e 63 65 | 20 6e 75 6d 62 65 72 2c |eference| number,|
|00000510| 0d 01 4a 52 f4 20 20 74 | 68 65 73 65 20 61 72 65 |..JR. t|hese are|
|00000520| 20 6d 75 6c 74 69 70 6c | 69 65 73 20 6f 66 20 66 | multipl|ies of f|
|00000530| 6f 75 72 20 61 6e 64 20 | 61 72 65 20 75 73 65 64 |our and |are used|
|00000540| 20 61 73 20 69 6e 64 69 | 63 65 73 20 69 6e 74 6f | as indi|ces into|
|00000550| 20 74 68 65 20 6d 65 6d | 6f 72 79 20 62 6c 6f 63 | the mem|ory bloc|
|00000560| 6b 73 0d 01 54 05 3a 0d | 01 5e 3d f4 20 20 54 68 |ks..T.:.|.^=. Th|
|00000570| 65 20 57 64 65 66 25 20 | 62 6c 6f 63 6b 20 69 73 |e Wdef% |block is|
|00000580| 20 66 69 6c 6c 65 64 20 | 77 69 74 68 20 70 6f 69 | filled |with poi|
|00000590| 6e 74 65 72 73 20 74 6f | 20 74 68 65 20 77 69 6e |nters to| the win|
|000005a0| 64 6f 77 73 0d 01 68 05 | 3a 0d 01 72 05 3a 0d 01 |dows..h.|:..r.:..|
|000005b0| 7c 12 dd f2 54 65 6d 70 | 6c 61 74 65 49 6e 69 74 ||...Temp|lateInit|
|000005c0| 0d 01 86 08 ea 20 4f 25 | 0d 01 90 3e f4 20 20 41 |..... O%|...>. A|
|000005d0| 64 6a 75 73 74 20 74 68 | 69 73 20 74 6f 20 74 68 |djust th|is to th|
|000005e0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 74 65 6d 70 |e number| of temp|
|000005f0| 6c 61 74 65 73 20 79 6f | 75 20 77 61 6e 74 20 74 |lates yo|u want t|
|00000600| 6f 20 68 61 76 65 0d 01 | 9a 11 4d 61 78 48 61 6e |o have..|..MaxHan|
|00000610| 64 6c 65 25 3d 31 32 0d | 01 a4 11 f2 54 65 6d 70 |dle%=12.|....Temp|
|00000620| 6c 61 74 65 4c 6f 61 64 | 0d 01 ae 13 f2 54 65 6d |lateLoad|.....Tem|
|00000630| 70 6c 61 74 65 41 64 6a | 75 73 74 0d 01 b8 1b de |plateAdj|ust.....|
|00000640| 20 57 64 65 66 25 20 20 | 20 20 4d 61 78 48 61 6e | Wdef% | MaxHan|
|00000650| 64 6c 65 25 2b 34 0d 01 | c2 1b de 20 57 68 61 6e |dle%+4..|... Whan|
|00000660| 64 6c 65 25 20 4d 61 78 | 48 61 6e 64 6c 65 25 2b |dle% Max|Handle%+|
|00000670| 34 0d 01 cc 1b de 20 57 | 73 74 61 74 65 25 20 20 |4..... W|state% |
|00000680| 4d 61 78 48 61 6e 64 6c | 65 25 2b 34 0d 01 d6 1b |MaxHandl|e%+4....|
|00000690| e3 20 4f 25 3d 30 20 b8 | 20 4d 61 78 48 61 6e 64 |. O%=0 .| MaxHand|
|000006a0| 6c 65 25 20 88 20 34 0d | 01 e0 12 20 20 57 73 74 |le% . 4.|... Wst|
|000006b0| 61 74 65 25 21 4f 25 3d | 30 0d 01 ea 05 ed 0d 01 |ate%!O%=|0.......|
|000006c0| f4 1b e3 20 4f 25 3d 30 | 20 b8 20 4d 61 78 48 61 |... O%=0| . MaxHa|
|000006d0| 6e 64 6c 65 25 20 88 20 | 34 0d 01 fe 13 20 20 57 |ndle% . |4.... W|
|000006e0| 68 61 6e 64 6c 65 25 21 | 4f 25 3d 30 0d 02 08 05 |handle%!|O%=0....|
|000006f0| ed 0d 02 12 37 f4 20 20 | 52 65 70 6c 61 63 65 20 |....7. |Replace |
|00000700| 74 68 65 73 65 20 77 69 | 74 68 20 79 6f 75 72 20 |these wi|th your |
|00000710| 6f 77 6e 20 74 65 6d 70 | 6c 61 74 65 20 69 64 65 |own temp|late ide|
|00000720| 6e 74 69 66 69 65 72 73 | 0d 02 1c 42 f4 20 20 44 |ntifiers|...B. D|
|00000730| 6f 20 6e 6f 74 20 75 73 | 65 20 61 20 7a 65 72 6f |o not us|e a zero|
|00000740| 20 69 6e 64 69 63 65 20 | 6b 65 65 70 20 74 68 61 | indice |keep tha|
|00000750| 74 20 61 73 20 61 20 6e | 6f 20 77 69 6e 64 6f 77 |t as a n|o window|
|00000760| 20 69 6e 64 69 63 61 74 | 6f 72 0d 02 26 16 70 72 | indicat|or..&.pr|
|00000770| 6f 67 69 6e 66 6f 5f 77 | 69 6e 25 20 20 20 3d 34 |oginfo_w|in% =4|
|00000780| 0d 02 30 16 77 61 72 6e | 69 6e 67 5f 77 69 6e 25 |..0.warn|ing_win%|
|00000790| 20 20 20 20 3d 38 0d 02 | 3a 17 6d 61 69 6e 5f 77 | =8..|:.main_w|
|000007a0| 69 6e 25 20 20 20 20 20 | 20 20 3d 31 32 0d 02 44 |in% | =12..D|
|000007b0| 34 57 64 65 66 25 21 70 | 72 6f 67 69 6e 66 6f 5f |4Wdef%!p|roginfo_|
|000007c0| 77 69 6e 25 20 20 20 3d | a4 54 65 6d 70 6c 61 74 |win% =|.Templat|
|000007d0| 65 46 69 6e 64 28 22 70 | 72 6f 67 69 6e 66 6f 22 |eFind("p|roginfo"|
|000007e0| 29 0d 02 4e 33 57 64 65 | 66 25 21 77 61 72 6e 69 |)..N3Wde|f%!warni|
|000007f0| 6e 67 5f 77 69 6e 25 20 | 20 20 20 3d a4 54 65 6d |ng_win% | =.Tem|
|00000800| 70 6c 61 74 65 46 69 6e | 64 28 22 77 61 72 6e 69 |plateFin|d("warni|
|00000810| 6e 67 22 29 0d 02 58 30 | 57 64 65 66 25 21 6d 61 |ng")..X0|Wdef%!ma|
|00000820| 69 6e 5f 77 69 6e 25 20 | 20 20 20 20 20 20 3d a4 |in_win% | =.|
|00000830| 54 65 6d 70 6c 61 74 65 | 46 69 6e 64 28 22 6d 61 |Template|Find("ma|
|00000840| 69 6e 22 29 0d 02 62 05 | e1 0d 02 6c 05 3a 0d 02 |in")..b.|...l.:..|
|00000850| 76 05 3a 0d 02 80 05 3a | 0d 02 8a 3b f4 20 20 54 |v.:....:|...;. T|
|00000860| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 77 69 6c 6c |his rout|ine will|
|00000870| 20 6c 6f 61 64 20 74 68 | 65 20 73 70 65 63 69 66 | load th|e specif|
|00000880| 69 65 64 20 66 69 6c 65 | 20 69 6e 20 6d 65 6d 6f |ied file| in memo|
|00000890| 72 79 2e 0d 02 94 49 f4 | 20 20 49 74 20 77 69 6c |ry....I.| It wil|
|000008a0| 6c 20 63 72 65 61 74 65 | 20 61 20 62 6c 6f 63 6b |l create| a block|
|000008b0| 20 6f 66 20 6d 65 6d 6f | 72 79 20 63 61 6c 6c 65 | of memo|ry calle|
|000008c0| 64 20 57 69 6e 64 6f 77 | 73 25 20 74 6f 20 68 6f |d Window|s% to ho|
|000008d0| 6c 64 20 74 68 65 20 66 | 69 6c 65 2e 0d 02 9e 45 |ld the f|ile....E|
|000008e0| f4 20 20 41 6e 20 65 72 | 72 6f 72 20 77 69 6c 6c |. An er|ror will|
|000008f0| 20 62 65 20 67 65 6e 65 | 72 61 74 65 64 20 69 66 | be gene|rated if|
|00000900| 20 74 68 65 20 66 69 6c | 65 20 64 6f 65 73 20 6e | the fil|e does n|
|00000910| 6f 74 20 65 78 69 73 74 | 20 6f 72 20 69 66 20 69 |ot exist| or if i|
|00000920| 74 0d 02 a8 1c f4 20 20 | 69 73 6e 27 74 20 61 20 |t..... |isn't a |
|00000930| 74 65 6d 70 6c 61 74 65 | 20 66 69 6c 65 0d 02 b2 |template| file...|
|00000940| 05 3a 0d 02 bc 12 dd f2 | 54 65 6d 70 6c 61 74 65 |.:......|Template|
|00000950| 4c 6f 61 64 0d 02 c6 08 | ea 20 53 25 0d 02 d0 24 |Load....|. S%...$|
|00000960| 24 74 65 78 74 5f 62 75 | 66 25 3d 41 70 70 6c 44 |$text_bu|f%=ApplD|
|00000970| 69 72 24 2b 22 2e 54 65 | 6d 70 6c 61 74 65 73 22 |ir$+".Te|mplates"|
|00000980| 0d 02 da 24 53 25 3d a4 | 46 69 6c 65 52 65 61 64 |...$S%=.|FileRead|
|00000990| 53 69 7a 65 28 74 65 78 | 74 5f 62 75 66 25 2c 26 |Size(tex|t_buf%,&|
|000009a0| 46 45 43 29 0d 02 e4 2a | e7 20 53 25 3d 30 20 8c |FEC)...*|. S%=0 .|
|000009b0| 20 85 20 31 2c 22 54 65 | 6d 70 6c 61 74 65 20 66 | . 1,"Te|mplate f|
|000009c0| 69 6c 65 20 6e 6f 74 20 | 66 6f 75 6e 64 22 0d 02 |ile not |found"..|
|000009d0| ee 13 de 20 57 69 6e 64 | 6f 77 73 25 20 53 25 2b |... Wind|ows% S%+|
|000009e0| 34 0d 02 f8 16 c8 95 20 | 28 57 69 6e 64 6f 77 73 |4...... |(Windows|
|000009f0| 25 80 33 29 3c 3e 30 0d | 03 02 11 20 20 57 69 6e |%.3)<>0.|... Win|
|00000a00| 64 6f 77 73 25 2b 3d 31 | 0d 03 0c 05 ce 0d 03 16 |dows%+=1|........|
|00000a10| 28 c8 99 20 22 4f 53 5f | 46 69 6c 65 22 2c 31 36 |(.. "OS_|File",16|
|00000a20| 2c 74 65 78 74 5f 62 75 | 66 25 2c 57 69 6e 64 6f |,text_bu|f%,Windo|
|00000a30| 77 73 25 2c 30 0d 03 20 | 05 e1 0d 03 2a 05 3a 0d |ws%,0.. |....*.:.|
|00000a40| 03 34 43 f4 20 20 54 68 | 69 73 20 72 6f 75 74 69 |.4C. Th|is routi|
|00000a50| 6e 65 20 77 69 6c 6c 20 | 72 65 74 75 72 6e 20 61 |ne will |return a|
|00000a60| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|00000a70| 77 69 6e 64 6f 77 20 64 | 65 66 69 6e 69 74 69 6f |window d|efinitio|
|00000a80| 6e 2e 0d 03 3e 4f f4 20 | 20 49 66 20 74 68 65 20 |n...>O. | If the |
|00000a90| 73 70 65 63 69 66 69 65 | 64 20 74 65 6d 70 6c 61 |specifie|d templa|
|00000aa0| 74 65 20 69 73 20 6e 6f | 74 20 69 6e 20 74 68 65 |te is no|t in the|
|00000ab0| 20 66 69 6c 65 20 61 6e | 20 65 72 72 6f 72 20 77 | file an| error w|
|00000ac0| 69 6c 6c 20 62 65 20 67 | 65 6e 65 72 61 74 65 64 |ill be g|enerated|
|00000ad0| 2e 0d 03 48 05 3a 0d 03 | 52 16 dd a4 54 65 6d 70 |...H.:..|R...Temp|
|00000ae0| 6c 61 74 65 46 69 6e 64 | 28 4e 24 29 0d 03 5c 0e |lateFind|(N$)..\.|
|00000af0| ea 20 57 25 2c 50 25 2c | 4f 25 0d 03 66 0f 57 25 |. W%,P%,|O%..f.W%|
|00000b00| 3d 57 69 6e 64 6f 77 73 | 25 0d 03 70 0c 50 25 3d |=Windows|%..p.P%=|
|00000b10| 57 25 2b 31 36 0d 03 7a | 08 4f 25 3d 30 0d 03 84 |W%+16..z|.O%=0...|
|00000b20| 13 c8 95 21 50 25 3c 3e | 30 20 80 20 4f 25 3d 30 |...!P%<>|0 . O%=0|
|00000b30| 0d 03 8e 23 20 20 e7 24 | 28 50 25 2b 31 32 29 3d |...# .$|(P%+12)=|
|00000b40| 4e 24 80 50 25 21 38 3d | 31 8c 4f 25 3d 57 25 2b |N$.P%!8=|1.O%=W%+|
|00000b50| 21 50 25 0d 03 98 0c 20 | 20 50 25 2b 3d 32 34 0d |!P%.... | P%+=24.|
|00000b60| 03 a2 05 ce 0d 03 ac 2a | e7 4f 25 3d 30 8c 85 31 |.......*|.O%=0..1|
|00000b70| 2c 22 43 6f 75 6c 64 20 | 6e 6f 74 20 66 69 6e 64 |,"Could |not find|
|00000b80| 20 54 65 6d 70 6c 61 74 | 65 20 22 2b 4e 24 0d 03 | Templat|e "+N$..|
|00000b90| b6 07 3d 4f 25 0d 03 c0 | 05 3a 0d 03 ca 3d f4 20 |..=O%...|.:...=. |
|00000ba0| 20 54 68 69 73 20 72 6f | 75 74 69 6e 65 20 61 64 | This ro|utine ad|
|00000bb0| 6a 75 73 74 27 73 20 74 | 68 65 20 66 69 6c 65 20 |just's t|he file |
|00000bc0| 72 65 6c 61 74 69 76 65 | 20 64 61 74 61 20 70 6f |relative| data po|
|00000bd0| 69 6e 74 65 72 73 2e 0d | 03 d4 3a f4 20 20 54 68 |inters..|..:. Th|
|00000be0| 65 20 77 69 6d 70 20 6e | 65 65 64 73 20 74 68 65 |e wimp n|eeds the|
|00000bf0| 6d 20 74 6f 20 62 65 20 | 61 62 73 6f 6c 75 74 65 |m to be |absolute|
|00000c00| 20 6d 65 6d 6f 72 79 20 | 70 6f 69 6e 74 65 72 73 | memory |pointers|
|00000c10| 2e 0d 03 de 3f f4 20 20 | 53 70 72 69 74 65 20 70 |....?. |Sprite p|
|00000c20| 6f 69 6e 74 65 72 73 20 | 63 61 6e 20 6e 6f 74 20 |ointers |can not |
|00000c30| 62 65 20 61 64 6a 75 73 | 74 65 64 20 61 6e 64 20 |be adjus|ted and |
|00000c40| 72 65 73 75 6c 74 20 69 | 6e 20 65 72 72 6f 72 73 |result i|n errors|
|00000c50| 0d 03 e8 05 3a 0d 03 f2 | 14 dd f2 54 65 6d 70 6c |....:...|...Templ|
|00000c60| 61 74 65 41 64 6a 75 73 | 74 0d 03 fc 1a ea 20 57 |ateAdjus|t..... W|
|00000c70| 25 2c 53 25 2c 50 25 2c | 4f 25 2c 46 25 2c 4e 25 |%,S%,P%,|O%,F%,N%|
|00000c80| 2c 49 25 0d 04 06 0f 57 | 25 3d 57 69 6e 64 6f 77 |,I%....W|%=Window|
|00000c90| 73 25 0d 04 10 0f 53 25 | 3d 53 70 72 69 74 65 73 |s%....S%|=Sprites|
|00000ca0| 25 0d 04 1a 47 e7 20 57 | 25 21 30 3c 3e 2d 31 20 |%...G. W|%!0<>-1 |
|00000cb0| 8c 20 85 20 31 2c 22 43 | 61 6e 27 74 20 68 61 6e |. . 1,"C|an't han|
|00000cc0| 64 6c 65 20 54 65 6d 70 | 6c 61 74 65 20 66 69 6c |dle Temp|late fil|
|00000cd0| 65 73 20 77 69 74 68 20 | 66 6f 6e 74 20 72 65 66 |es with |font ref|
|00000ce0| 65 72 65 6e 63 65 73 22 | 0d 04 24 0c 50 25 3d 57 |erences"|..$.P%=W|
|00000cf0| 25 2b 31 36 0d 04 2e 0c | c8 95 21 50 25 3c 3e 30 |%+16....|..!P%<>0|
|00000d00| 0d 04 38 0f 20 20 4f 25 | 3d 57 25 2b 21 50 25 0d |..8. O%|=W%+!P%.|
|00000d10| 04 42 0e 20 20 4f 25 21 | 36 34 3d 53 25 0d 04 4c |.B. O%!|64=S%..L|
|00000d20| 0e 20 20 46 25 3d 4f 25 | 21 35 36 0d 04 56 10 20 |. F%=O%|!56..V. |
|00000d30| 20 c8 8e 46 25 80 26 31 | 30 33 ca 0d 04 60 10 20 | ..F%.&1|03...`. |
|00000d40| 20 c9 26 31 30 31 2c 26 | 31 30 33 0d 04 6a 11 20 | .&101,&|103..j. |
|00000d50| 20 20 20 4f 25 21 37 32 | 2b 3d 4f 25 0d 04 74 1c | O%!72|+=O%..t.|
|00000d60| 20 20 20 20 e7 4f 25 21 | 37 36 3c 3e 2d 31 8c 4f | .O%!|76<>-1.O|
|00000d70| 25 21 37 36 2b 3d 4f 25 | 0d 04 7e 0c 20 20 c9 20 |%!76+=O%|..~. . |
|00000d80| 26 31 30 32 0d 04 88 44 | 20 20 20 20 e7 4f 25 21 |&102...D| .O%!|
|00000d90| 38 30 3c 3e 30 8c 4f 25 | 21 37 32 2b 3d 4f 25 8b |80<>0.O%|!72+=O%.|
|00000da0| 85 31 2c 22 53 70 72 69 | 74 65 20 70 6f 69 6e 74 |.1,"Spri|te point|
|00000db0| 65 72 73 20 63 61 6e 20 | 6e 6f 74 20 62 65 20 61 |ers can |not be a|
|00000dc0| 64 6a 75 73 74 65 64 22 | 0d 04 92 1a 20 20 20 20 |djusted"|.... |
|00000dd0| e7 4f 25 21 37 36 3c 3e | 31 8c 4f 25 21 37 36 3d |.O%!76<>|1.O%!76=|
|00000de0| 53 25 0d 04 9c 07 20 20 | cb 0d 04 a6 0e 20 20 4e |S%.... |..... N|
|00000df0| 25 3d 4f 25 21 38 34 0d | 04 b0 0e 20 20 49 25 3d |%=O%!84.|... I%=|
|00000e00| 4f 25 2b 38 38 0d 04 ba | 0d 20 20 c8 95 20 4e 25 |O%+88...|. .. N%|
|00000e10| 3e 30 0d 04 c4 10 20 20 | 20 20 46 25 3d 49 25 21 |>0.... | F%=I%!|
|00000e20| 31 36 0d 04 ce 14 20 20 | 20 20 c8 8e 20 46 25 80 |16.... | .. F%.|
|00000e30| 26 31 30 33 20 ca 0d 04 | d8 13 20 20 20 20 c9 20 |&103 ...|.. . |
|00000e40| 26 31 30 31 2c 26 31 30 | 33 0d 04 e2 13 20 20 20 |&101,&10|3.... |
|00000e50| 20 20 20 49 25 21 32 30 | 2b 3d 4f 25 0d 04 ec 1e | I%!20|+=O%....|
|00000e60| 20 20 20 20 20 20 e7 49 | 25 21 32 34 3c 3e 2d 31 | .I|%!24<>-1|
|00000e70| 8c 49 25 21 32 34 2b 3d | 4f 25 0d 04 f6 0e 20 20 |.I%!24+=|O%.... |
|00000e80| 20 20 c9 20 26 31 30 32 | 0d 05 00 46 20 20 20 20 | . &102|...F |
|00000e90| 20 20 e7 49 25 21 32 38 | 3c 3e 30 8c 49 25 21 32 | .I%!28|<>0.I%!2|
|00000ea0| 30 2b 3d 4f 25 8b 85 31 | 2c 22 53 70 72 69 74 65 |0+=O%..1|,"Sprite|
|00000eb0| 20 70 6f 69 6e 74 65 72 | 73 20 63 61 6e 20 6e 6f | pointer|s can no|
|00000ec0| 74 20 62 65 20 61 64 6a | 75 73 74 65 64 22 0d 05 |t be adj|usted"..|
|00000ed0| 0a 1c 20 20 20 20 20 20 | e7 49 25 21 32 34 3c 3e |.. |.I%!24<>|
|00000ee0| 31 8c 49 25 21 32 34 3d | 53 25 0d 05 14 09 20 20 |1.I%!24=|S%.... |
|00000ef0| 20 20 cb 0d 05 1e 0d 20 | 20 20 20 4e 25 2d 3d 31 | ..... | N%-=1|
|00000f00| 0d 05 28 0e 20 20 20 20 | 49 25 2b 3d 33 32 0d 05 |..(. |I%+=32..|
|00000f10| 32 07 20 20 ce 0d 05 3c | 0c 20 20 50 25 2b 3d 32 |2. ...<|. P%+=2|
|00000f20| 34 0d 05 46 05 ce 0d 05 | 50 05 e1 0d 05 5a 05 3a |4..F....|P....Z.:|
|00000f30| 0d 05 64 4c f4 20 20 54 | 68 65 20 66 6f 6c 6f 77 |..dL. T|he folow|
|00000f40| 69 6e 67 20 74 77 6f 20 | 72 6f 75 74 69 6e 65 73 |ing two |routines|
|00000f50| 20 6d 75 73 74 20 70 61 | 73 73 65 64 20 61 20 76 | must pa|ssed a v|
|00000f60| 61 6c 69 64 20 77 69 6e | 64 6f 77 20 72 65 66 65 |alid win|dow refe|
|00000f70| 72 65 6e 63 65 20 6e 75 | 6d 62 65 72 0d 05 6e 05 |rence nu|mber..n.|
|00000f80| 3a 0d 05 78 33 f4 20 20 | 54 68 69 73 20 72 6f 75 |:..x3. |This rou|
|00000f90| 74 69 6e 65 20 63 72 65 | 61 74 65 73 20 61 20 77 |tine cre|ates a w|
|00000fa0| 69 6e 64 6f 77 20 77 68 | 65 6e 20 6e 65 73 73 65 |indow wh|en nesse|
|00000fb0| 63 61 72 79 0d 05 82 38 | f4 20 20 61 6e 20 65 72 |cary...8|. an er|
|00000fc0| 72 6f 72 20 77 69 6c 6c | 20 62 65 20 67 65 6e 65 |ror will| be gene|
|00000fd0| 72 61 74 65 64 20 69 66 | 20 74 68 65 20 63 72 65 |rated if| the cre|
|00000fe0| 61 74 69 6f 6e 20 66 61 | 69 6c 65 64 0d 05 8c 05 |ation fa|iled....|
|00000ff0| 3a 0d 05 96 16 dd f2 57 | 69 6e 64 6f 77 45 6e 73 |:......W|indowEns|
|00001000| 75 72 65 28 77 25 29 0d | 05 a0 08 ea 20 46 25 0d |ure(w%).|.... F%.|
|00001010| 05 aa 14 e7 20 57 73 74 | 61 74 65 25 21 77 25 3d |.... Wst|ate%!w%=|
|00001020| 30 20 8c 0d 05 b4 39 20 | 20 c8 99 20 22 58 57 69 |0 ....9 | .. "XWi|
|00001030| 6d 70 5f 43 72 65 61 74 | 65 57 69 6e 64 6f 77 22 |mp_Creat|eWindow"|
|00001040| 2c 2c 57 64 65 66 25 21 | 77 25 20 b8 20 57 68 61 |,,Wdef%!|w% . Wha|
|00001050| 6e 64 6c 65 25 21 77 25 | 20 3b 46 25 0d 05 be 10 |ndle%!w%| ;F%....|
|00001060| 20 20 e7 20 28 46 25 80 | 31 29 20 8c 0d 05 c8 2d | . (F%.|1) ....-|
|00001070| 20 20 20 20 85 20 31 2c | 22 43 6f 75 6c 64 20 6e | . 1,|"Could n|
|00001080| 6f 74 20 63 72 65 61 74 | 65 20 61 6e 6f 74 68 65 |ot creat|e anothe|
|00001090| 72 20 77 69 6e 64 6f 77 | 22 0d 05 d2 07 20 20 cc |r window|".... .|
|000010a0| 0d 05 dc 14 20 20 20 20 | 57 73 74 61 74 65 25 21 |.... |Wstate%!|
|000010b0| 77 25 3d 31 0d 05 e6 07 | 20 20 cd 0d 05 f0 05 cd |w%=1....| ......|
|000010c0| 0d 05 fa 05 e1 0d 06 04 | 05 3a 0d 06 0e 34 f4 20 |........|.:...4. |
|000010d0| 20 54 68 69 73 20 72 6f | 75 74 69 6e 65 20 77 69 | This ro|utine wi|
|000010e0| 6c 6c 20 64 65 6c 65 74 | 65 20 74 68 65 20 73 70 |ll delet|e the sp|
|000010f0| 65 63 69 66 69 65 64 20 | 77 69 6e 64 6f 77 0d 06 |ecified |window..|
|00001100| 18 05 3a 0d 06 22 16 dd | f2 57 69 6e 64 6f 77 44 |..:.."..|.WindowD|
|00001110| 65 6c 65 74 65 28 77 25 | 29 0d 06 2c 14 e7 20 57 |elete(w%|)..,.. W|
|00001120| 73 74 61 74 65 25 21 77 | 25 3e 30 20 8c 0d 06 36 |state%!w|%>0 ...6|
|00001130| 29 20 20 c8 99 20 22 57 | 69 6d 70 5f 44 65 6c 65 |) .. "W|imp_Dele|
|00001140| 74 65 57 69 6e 64 6f 77 | 22 2c 2c 57 68 61 6e 64 |teWindow|",,Whand|
|00001150| 6c 65 25 2b 77 25 0d 06 | 40 13 20 20 57 68 61 6e |le%+w%..|@. Whan|
|00001160| 64 6c 65 25 21 77 25 3d | 30 0d 06 4a 12 20 20 57 |dle%!w%=|0..J. W|
|00001170| 73 74 61 74 65 25 21 77 | 25 3d 30 0d 06 54 05 cd |state%!w|%=0..T..|
|00001180| 0d 06 5e 05 e1 0d 06 68 | 05 3a 0d 06 72 2f f4 20 |..^....h|.:..r/. |
|00001190| 20 54 68 69 73 20 72 6f | 75 74 69 6e 65 20 64 65 | This ro|utine de|
|000011a0| 6c 65 74 65 73 20 61 6c | 6c 20 63 72 65 61 74 65 |letes al|l create|
|000011b0| 64 20 77 69 6e 64 6f 77 | 73 0d 06 7c 05 3a 0d 06 |d window|s..|.:..|
|000011c0| 86 14 dd f2 57 69 6e 64 | 6f 77 43 6c 6f 73 65 41 |....Wind|owCloseA|
|000011d0| 6c 6c 0d 06 90 08 ea 20 | 4f 25 0d 06 9a 1a e3 20 |ll..... |O%..... |
|000011e0| 4f 25 3d 34 20 b8 20 4d | 61 78 48 61 6e 64 6c 65 |O%=4 . M|axHandle|
|000011f0| 25 20 88 34 0d 06 a4 17 | 20 20 f2 57 69 6e 64 6f |% .4....| .Windo|
|00001200| 77 44 65 6c 65 74 65 28 | 4f 25 29 0d 06 ae 05 ed |wDelete(|O%).....|
|00001210| 0d 06 b8 05 e1 0d 06 c2 | 05 3a 0d 06 cc 4b f4 20 |........|.:...K. |
|00001220| 20 54 68 69 73 20 72 6f | 75 74 69 6e 65 20 63 68 | This ro|utine ch|
|00001230| 65 63 6b 73 20 74 68 61 | 74 20 74 68 65 20 73 70 |ecks tha|t the sp|
|00001240| 65 63 69 66 69 65 64 20 | 66 69 6c 65 20 68 61 73 |ecified |file has|
|00001250| 20 74 68 65 20 63 6f 72 | 72 65 63 74 20 66 69 6c | the cor|rect fil|
|00001260| 65 74 79 70 65 0d 06 d6 | 20 f4 20 20 61 6e 64 20 |etype...| . and |
|00001270| 74 68 61 74 20 69 74 20 | 69 73 20 61 76 61 69 6c |that it |is avail|
|00001280| 61 62 6c 65 2e 0d 06 e0 | 47 f4 20 20 49 66 20 69 |able....|G. If i|
|00001290| 74 20 69 73 20 74 68 65 | 20 66 69 6c 65 27 73 20 |t is the| file's |
|000012a0| 73 69 7a 65 20 69 73 20 | 72 65 74 75 72 6e 65 64 |size is |returned|
|000012b0| 20 6f 74 68 65 72 77 69 | 73 65 20 7a 65 72 6f 20 | otherwi|se zero |
|000012c0| 69 73 20 72 65 74 75 72 | 6e 65 64 2e 0d 06 ea 05 |is retur|ned.....|
|000012d0| 3a 0d 06 f4 23 dd a4 46 | 69 6c 65 52 65 61 64 53 |:...#..F|ileReadS|
|000012e0| 69 7a 65 28 70 61 74 68 | 25 2c 66 69 6c 65 74 79 |ize(path|%,filety|
|000012f0| 70 65 25 29 0d 06 fe 14 | ea 20 66 6f 75 6e 64 25 |pe%)....|. found%|
|00001300| 2c 6c 65 6e 67 68 74 25 | 0d 07 08 38 c8 99 20 22 |,lenght%|...8.. "|
|00001310| 4f 53 5f 46 69 6c 65 22 | 2c 35 2c 70 61 74 68 25 |OS_File"|,5,path%|
|00001320| 20 b8 20 66 6f 75 6e 64 | 25 2c 2c 6c 6f 61 64 61 | . found|%,,loada|
|00001330| 64 64 72 65 73 73 25 2c | 2c 6c 65 6e 67 68 74 25 |ddress%,|,lenght%|
|00001340| 0d 07 12 13 e7 20 66 6f | 75 6e 64 25 3d 30 20 8c |..... fo|und%=0 .|
|00001350| 20 3d 30 0d 07 1c 37 e7 | 20 28 6c 6f 61 64 61 64 | =0...7.| (loadad|
|00001360| 64 72 65 73 73 25 3e 3e | 38 29 20 3c 3e 20 28 26 |dress%>>|8) <> (&|
|00001370| 46 46 46 46 46 30 30 30 | 20 84 20 66 69 6c 65 74 |FFFFF000| . filet|
|00001380| 79 70 65 25 29 20 8c 20 | 3d 30 0d 07 26 0c 3d 6c |ype%) . |=0..&.=l|
|00001390| 65 6e 67 68 74 25 0d ff | |enght%..| |
+--------+-------------------------+-------------------------+--------+--------+