|
-
Jul 20th, 2012, 04:00 AM
#1
Thread Starter
New Member
64 bit signed integers in 32 bit VB6
I want to convert strings that repesent 64 bit signed integers to and from decimal and hexadecimal strings format. Note I don't need the data as a 64 bit integer (which is what searching google talks about) as I can do my maths by concatenating and slicing the hex string. The most significant 32 bits will always be FFFFFFFF.
Does anyone know of some functions available so I can avoid thinking?
-
Jul 20th, 2012, 10:12 AM
#2
Re: 64 bit signed integers in 32 bit VB6
String format ? Exactly what do you mean ? Numbers as strings don't necessarily imply a specific size of integer. You could convert the string to an Integer or a Long provided the number is small enough.
-
Jul 21st, 2012, 12:51 AM
#3
Thread Starter
New Member
Re: 64 bit signed integers in 32 bit VB6
The strings are in the message table of NTDll.dll.mui. They are a decimal representation of &hffffffffnnnnnnnn where the n is the 32 bit NTStatus code. So I need to convert 64 bit integers or 64 bit hexedecimal string to a signed decimal representation so I can search for them.
This approach is needed because of the problem here http://www.vbforums.com/showthread.p...20#post4194720 which involve letting windows do the work - but it errors.
-
Jul 21st, 2012, 01:32 AM
#4
Re: 64 bit signed integers in 32 bit VB6
 Originally Posted by Davidca
I just replied to that Thread - I think the problem was in the API definition. (ByVal missing)
-
Jul 21st, 2012, 01:54 AM
#5
Thread Starter
New Member
Re: 64 bit signed integers in 32 bit VB6
Thank you, I can now return to a world where numbers don't exceed 4 billion.
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
|