|
-
Sep 20th, 2000, 02:33 AM
#1
Hallo
I have to convert a file which info is in hexadecimal to decimal and then import the info into my application. This specific file is generated by a C/C++ program. Can someone please help....code would be appreciated or ideas on how to do it in VB instead of C/C++. I use the Instream command to read file into app.
Thanx for help
-
Sep 20th, 2000, 02:53 AM
#2
Try this:
Code:
HexValue = &HFF
HexValueInDecimal = CDec(HexValue)
'BUT if the HexValue is like this:
HexValue = "FF"
HexValueInDecimal = CDec("&H" & HexValue)
' HexValueInDecimal should equal 255
Hope that's what you are after (it's probably not because I never tell anyboudy what they want).
-
Sep 20th, 2000, 05:52 AM
#3
Thanx, but how do I convert a whole file with outlay like:
0EE5:0100 30 30 37 37 39 32 32 30-33 37 33 37 7F 2E 2F 33
007792203737../3
0EE5:0110 38 3C 42 4A 51 59 60 68-70 78 80 89 91 98 A0 A7
8<BJQY`hpx......
0EE5:0120 AE B3 B8 BC BF C0 C1 C2-C1 C0 BE BB B8 B2 A4 92
................
0EE5:0130 7E 6B 5A 4C 42 3E 3E 41-48 51 5C 69 75 82 8D 97
~kZLB>>AHQ\iu...
0EE5:0140 9E A3 A6 A7 A5 A2 9C 94-8B 80 77 6E 68 63 61 61
..........wnhcaa
0EE5:0150 64 68 6E 74 7B 82 87 8C-8F 91 92 92 91 8E 8B 87
dhnt{...........
0EE5:0160 84 7F 7B 77 75 73 72 72-73 75 77 7A 7E 81 84 86
..{wusrrsuwz~...
0EE5:0170 88 89 89 89 88 86 85 83-80 7E 7C 7B 7A 79 79 79
.........~|{zyyy
There must be an other way of reding in every value one by one.
I need help desperately
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|