New feature! Upgrade and increase expert visibility of your issues with Priority Questions.
Function GetInt64FromLargeInteger(ByVal largeInteger As Object) As Int64 Dim low As Int32 Dim high As Int32 Dim valBytes(7) As Byte Dim longInt As IADsLargeInteger = CType(largeInteger, IADsLargeInteger) low = longInt.LowPart high = longInt.HighPart BitConverter.GetBytes(low).CopyTo(valBytes, 0) BitConverter.GetBytes(high).CopyTo(valBytes, 4) Return BitConverter.ToInt64(valBytes, 0) Return BitConverter.ToInt64(valBytes, 0) End Function
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.