User Profile

Collapse

Profile Sidebar

Collapse
caesarv
caesarv
Last Activity: Aug 1 '07, 10:47 PM
Joined: Aug 1 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Okay, I will answer my own post. I was able to use the CopyMemory API . this basically made this just a 4-line project:

    Dim DestArray(0 To 7) As Byte
    Dim varDbl As Double
    varDbl = CDbl(txtNumber. Text)
    CopyMemory DestArray(0), varDbl, 8 ' The "8" represents the number of bytes to copy....
    See more | Go to post

    Leave a comment:


  • I need a 64-bit representation of a double in VB

    I need to convert a VB6 double into a 64-bit representation of 1's and 0's. I probably could deconstruct a double into its bits by following IEEE 754, but that seem like a brute force method. Since VB probably stores a double in this format, is there any simple way to read out a memory location in bits (or bytes)? Any other ideas?

    In actuality, I really need the representation in 4 Unsigned Integers (which VB does not support),...
    See more | Go to post
No activity results to display
Show More
Working...