home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Demos / A.D. Software / OOFILE 1.3b4d6.sit / OOFILE 1.3b4d6 / MacCodeWarriorDemo1.3b4d6 / docs / samples / ooftst08.cpp < prev    next >
MacBinary  |  1997-03-18  |  1.5 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).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Mon Mar 17 20:06:34 1997, modified Mon Mar 17 20:06:34 1997, creator 'CWIE', type ASCII, 850 bytes "ooftst08.cpp" , at 0x3d2 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 6f 6f 66 74 73 74 | 30 38 2e 63 70 70 00 00 |..ooftst|08.cpp..|
|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 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 03 52 00 | 00 01 9a af 53 9b 1a af |......R.|....S...|
|00000060| 53 9b 1a 00 00 0a 00 00 | 00 00 00 00 00 00 00 00 |S.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 4f e6 00 00 |........|....O...|
|00000080| 2f 2f 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 39 |// Copyr|ight 199|
|00000090| 34 20 41 2e 44 2e 20 53 | 6f 66 74 77 61 72 65 2e |4 A.D. S|oftware.|
|000000a0| 20 41 6c 6c 20 52 69 67 | 68 74 73 20 52 65 73 65 | All Rig|hts Rese|
|000000b0| 72 76 65 64 0d 0d 2f 2f | 20 4f 4f 46 54 45 53 54 |rved..//| OOFTEST|
|000000c0| 38 0d 0d 2f 2f 20 54 68 | 69 73 20 73 61 6d 70 6c |8..// Th|is sampl|
|000000d0| 65 20 6a 75 73 74 20 74 | 65 73 74 73 20 74 68 65 |e just t|ests the|
|000000e0| 20 64 62 43 6f 6e 6e 65 | 63 74 3a 3a 72 61 69 73 | dbConne|ct::rais|
|000000f0| 65 28 29 20 6d 65 74 68 | 6f 64 20 6f 66 20 65 72 |e() meth|od of er|
|00000100| 72 6f 72 20 72 65 70 6f | 72 74 69 6e 67 2e 0d 2f |ror repo|rting../|
|00000110| 2f 20 77 68 69 63 68 20 | 73 68 6f 75 6c 64 20 75 |/ which |should u|
|00000120| 73 65 20 61 20 6d 65 73 | 73 61 67 65 20 62 6f 78 |se a mes|sage box|
|00000130| 20 6f 6e 20 74 68 65 20 | 57 69 6e 64 6f 77 73 20 | on the |Windows |
|00000140| 61 6e 64 20 4d 61 63 20 | 65 6e 76 69 72 6f 6e 6d |and Mac |environm|
|00000150| 65 6e 74 73 0d 2f 2f 20 | 61 6e 64 20 63 6f 6e 73 |ents.// |and cons|
|00000160| 6f 6c 65 20 6f 75 74 70 | 75 74 20 65 6c 73 65 77 |ole outp|ut elsew|
|00000170| 68 65 72 65 0d 0d 23 69 | 6e 63 6c 75 64 65 20 22 |here..#i|nclude "|
|00000180| 6f 6f 66 69 6c 65 2e 68 | 22 0d 0d 0d 69 6e 74 20 |oofile.h|"...int |
|00000190| 6d 61 69 6e 28 29 0d 7b | 0d 09 63 6f 75 74 20 3c |main().{|..cout <|
|000001a0| 3c 20 22 54 65 73 74 69 | 6e 67 22 20 3c 3c 20 65 |< "Testi|ng" << e|
|000001b0| 6e 64 6c 20 3c 3c 20 66 | 6c 75 73 68 3b 0d 09 64 |ndl << f|lush;..d|
|000001c0| 62 43 6f 6e 6e 65 63 74 | 3a 3a 72 61 69 73 65 28 |bConnect|::raise(|
|000001d0| 20 6f 73 74 72 73 74 72 | 65 61 6d 28 29 20 0d 09 | ostrstr|eam() ..|
|000001e0| 20 20 20 3c 3c 20 22 54 | 68 69 73 20 69 73 20 61 | << "T|his is a|
|000001f0| 20 6c 6f 6e 67 65 72 20 | 73 74 72 69 6e 67 20 74 | longer |string t|
|00000200| 6f 20 73 65 65 20 69 66 | 20 49 20 63 61 6e 20 67 |o see if| I can g|
|00000210| 65 74 20 74 68 65 20 41 | 6c 65 72 74 20 74 6f 20 |et the A|lert to |
|00000220| 68 61 6e 64 6c 65 20 69 | 74 20 6f 72 20 6e 6f 74 |handle i|t or not|
|00000230| 22 0d 09 20 20 20 3c 3c | 20 65 6e 64 6c 0d 09 20 |".. <<| endl.. |
|00000240| 20 20 3c 3c 20 22 61 6e | 64 20 6a 75 73 74 20 77 | << "an|d just w|
|00000250| 68 61 74 20 68 61 70 70 | 65 6e 73 20 77 69 74 68 |hat happ|ens with|
|00000260| 20 65 6d 62 65 64 64 65 | 64 20 6e 65 77 6c 69 6e | embedde|d newlin|
|00000270| 65 73 2c 20 61 6c 73 6f | 20 74 6f 20 73 65 65 20 |es, also| to see |
|00000280| 69 66 20 74 68 65 20 77 | 72 61 70 70 69 6e 67 20 |if the w|rapping |
|00000290| 77 6f 72 6b 73 20 4f 4b | 20 22 0d 09 20 20 20 3c |works OK| ".. <|
|000002a0| 3c 20 22 66 6f 72 20 76 | 65 72 79 20 6c 6f 6e 67 |< "for v|ery long|
|000002b0| 20 6c 69 6e 65 73 20 77 | 68 69 63 68 20 49 20 61 | lines w|hich I a|
|000002c0| 6d 20 73 75 72 65 20 61 | 72 65 20 6e 6f 77 20 65 |m sure a|re now e|
|000002d0| 78 63 65 65 64 69 6e 67 | 20 74 68 65 20 32 35 35 |xceeding| the 255|
|000002e0| 20 63 68 61 72 61 63 74 | 65 72 20 6c 69 6d 69 74 | charact|er limit|
|000002f0| 2c 20 6f 72 20 22 0d 09 | 20 20 20 3c 3c 20 22 69 |, or "..| << "i|
|00000300| 66 20 6e 6f 74 20 79 65 | 74 20 77 69 6c 6c 20 73 |f not ye|t will s|
|00000310| 6f 6f 6e 20 62 65 20 61 | 6e 64 20 73 6f 20 69 74 |oon be a|nd so it|
|00000320| 20 77 69 6c 6c 20 62 65 | 20 69 6e 74 65 72 65 73 | will be| interes|
|00000330| 74 69 6e 67 20 74 6f 20 | 73 65 65 20 6a 75 73 74 |ting to |see just|
|00000340| 20 77 68 61 74 20 74 68 | 65 20 63 6f 6d 70 69 6c | what th|e compil|
|00000350| 65 72 20 22 0d 09 20 20 | 20 3c 3c 20 22 63 6f 6d |er ".. | << "com|
|00000360| 70 6c 61 69 6e 73 20 6f | 66 20 69 66 20 69 6e 64 |plains o|f if ind|
|00000370| 65 65 64 20 69 74 20 64 | 6f 65 73 20 63 6f 6d 70 |eed it d|oes comp|
|00000380| 6c 61 69 6e 21 22 29 3b | 0d 09 63 6f 75 74 20 3c |lain!");|..cout <|
|00000390| 3c 20 22 46 69 6e 69 73 | 68 65 64 22 20 3c 3c 20 |< "Finis|hed" << |
|000003a0| 65 6e 64 6c 20 3c 3c 20 | 66 6c 75 73 68 3b 0d 09 |endl << |flush;..|
|000003b0| 0d 09 72 65 74 75 72 6e | 20 45 58 49 54 5f 53 55 |..return| EXIT_SU|
|000003c0| 43 43 45 53 53 3b 0d 7d | 20 20 20 20 20 20 20 0d |CCESS;.}| .|
|000003d0| 0d 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000410| 00 0f 0c 0c 0c 0c 0c 0c | 0c 0c 0c 0c 0c 0f 00 00 |........|........|
|00000420| 00 0f c0 c0 c0 c0 c0 c0 | c0 c0 c0 c0 c0 cf 00 00 |........|........|
|00000430| 0c 6f 6f 66 74 73 74 30 | 38 2e 63 70 70 30 02 00 |.ooftst0|8.cpp0..|
|00000440| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000450| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 b0 1b 75 f6 00 00 | 00 00 00 00 01 9a 00 00 |....u...|........|
|00000480| 00 0f c0 c5 50 c0 c5 50 | c5 50 c0 c5 50 cf 00 00 |....P..P|.P..P...|
|00000490| 00 0f 0c 0c 0c 0c 0c 0c | 0c 0c 0c 0c 0c 0f 00 00 |........|........|
|000004a0| 00 0f c0 c5 50 c0 c5 50 | c5 50 c0 c0 c0 cf 00 00 |....P..P|.P......|
|000004b0| 00 0f 0c 0c 0c 0c 0c 0c | 0c 0c 0c 0c 0c 0f 00 00 |........|........|
|000004c0| 00 0f c0 c5 55 55 55 50 | c5 50 c0 c0 c0 cf 00 00 |....UUUP|.P......|
|000004d0| 00 0f 0c 0c 0c 0c 0c 0c | 0c 0c 0c 0c 0c 0f 00 00 |........|........|
|000004e0| 00 0f c0 c5 50 c0 c0 c0 | c5 50 c0 c0 c0 cf 00 00 |....P...|.P......|
|000004f0| 00 0f 0c 0c 0c 0c 0c 0c | 0c 0c 0c 0c 0c 0f 00 00 |........|........|
|00000500| 00 00 00 04 00 01 00 01 | 00 00 00 48 00 09 4d 6f |........|...H..Mo|
|00000510| 6e 61 63 6f 00 30 ff c8 | 2d 0a 00 08 a3 8a 00 00 |naco.0..|-.......|
|00000520| 02 56 d1 b0 02 49 04 90 | 02 56 02 56 00 00 00 06 |.V...I..|.V.V....|
|00000530| 00 04 00 58 00 04 01 be | 02 54 00 58 00 04 01 be |...X....|.T.X....|
|00000540| 02 54 af 53 62 da 00 00 | 00 00 00 00 00 00 00 00 |.T.Sb...|........|
|00000550| 00 00 01 00 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000560| 00 00 00 46 02 49 08 98 | 2b 56 00 00 00 1c 00 46 |...F.I..|+V.....F|
|00000570| 00 01 4d 57 42 42 00 00 | 00 12 4d 50 53 52 00 00 |..MWBB..|..MPSR..|
|00000580| 00 1e 03 f0 ff ff 00 00 | 00 00 00 00 00 00 03 ed |........|........|
|00000590| ff ff 00 00 00 08 02 49 | 04 c8 00 00 00 00 00 00 |.......I|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+