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CÍ?^M^@^CÍ?^M^@^CÍ?^MÐ^@^CÍ?^Mh^@^CÍ?^Mê^@^ +CÍ?^M^D^A^CÍ?^M8^A^CÍ?^MR^A^CÍ?^Ml^A^CÍ?^M"^B^CÍ?^Mº^A^CÍ?^MÔ z^C^@Í?^B¶^B^@Í?^CXB^@Í?^B¸^G^@Í?^B ^F^@Í?^Br^N^@Í?^CÄ@^@Í?^Cð7^@Í?^CR&^@Í?^DpI^@Í?^C^_^@Í?^D@L^@Í?^PÒ^A^@ +Í?^Dü.^@Í?^D.^@Í?^C®.^@Í?^C^0^@Í?^CÜH^@Í?^C(^@Í?^C:M^@Í?^P³^B ^@Í?^C^H<^@Í?^DÒ^]^@Í?^D^@$^@Í?^DÈ^F^@Í?^CÀ^_^@Í?^C¢^_^@Í?^Dð^B^@Í?^D¢ +<^@Í?^DD^^^@Í?^D^H^@Í?^Dð^H^@Í?^CJ'^@Í?^Cê=^@Í?^D^Z^C^@Í?^H^Z^C È^B^@Í?^N*^C^@Í?^P^@^@^@Í?^CNV^@Í?^B^^E^@Í? ^\^F^@Í? ^G^@Í +?^M<^B^@Í?^M^@^@^@Í?^M¶^@^@Í?^M^Z^@^@Í? ^^^D^@Í?^C¦8^@Í?^CîW^@Í?^CTW^@Í?^CRQ^@Í?^B^@^@^@^@LOLE Client. support + (c) Copyright Microsoft Corp. 1990 - All Rights Reserved^@^@^NGEN ERREXECUTEÍ^B^HERRCLOSEÅ^B MFRELEASE,^A^KLEQUERYOPEN×^@^QOLEQUERY +OUTOFDATE^_^@^NLESAVETOSTREAMÏ^@ ERRSETDATA¾^B BMRELEASE^A^ROLECREATEINVISIBLE:^@ LESETDATAË^@^NM +FSAVETOSTREAM.^A^QLESETTARGETDEVICEÍ^@^PLEQ
how am i supposed to know if a byte is larger that 30(hex)...?
20060822 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips, removed H2 tags
wellll thnx for the help!!!!=) it really helped a lot
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: BIN to HEX
by Roger (Parson) on Aug 22, 2006 at 07:01 UTC | |
by eyepopslikeamosquito (Archbishop) on Aug 22, 2006 at 11:26 UTC | |
by betterworld (Curate) on Aug 22, 2006 at 11:15 UTC | |
|
Re: BIN to HEX
by AndyArmstrong (Novice) on Aug 22, 2006 at 12:48 UTC | |
|
Re: BIN to HEX
by talexb (Chancellor) on Aug 22, 2006 at 14:49 UTC | |
|
Re: BIN to HEX
by cdarke (Prior) on Aug 22, 2006 at 07:11 UTC | |
|
Re: BIN to HEX
by Fletch (Bishop) on Aug 22, 2006 at 13:30 UTC |