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?
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.
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.
Re: 64 bit signed integers in 32 bit VB6
Quote:
Originally Posted by
Davidca
I just replied to that Thread - I think the problem was in the API definition. (ByVal missing)
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.