Results 1 to 5 of 5

Thread: 64 bit signed integers in 32 bit VB6

  1. #1
    New Member
    Join Date
    Jul 12
    Posts
    11

    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?

  2. #2
    Burning Member Niya's Avatar
    Join Date
    Nov 11
    Posts
    3,131

    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.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | Create Sortable BindingList(not mine) | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading


    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. -jmcilhinney

  3. #3
    New Member
    Join Date
    Jul 12
    Posts
    11

    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.

  4. #4
    PowerPoster
    Join Date
    Jul 06
    Location
    Maldon, Essex. UK
    Posts
    5,139

    Re: 64 bit signed integers in 32 bit VB6

    Quote Originally Posted by Davidca View Post
    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.
    I just replied to that Thread - I think the problem was in the API definition. (ByVal missing)

  5. #5
    New Member
    Join Date
    Jul 12
    Posts
    11

    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
  •