home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "Module1"
- Option Explicit
- ' Create an object variable.
- Dim lngValue As New clsLong
-
- Sub Main()
- #Const DebugBuild = 0
- ' Test code for debugging.
- #If DebugBuild Then
- ' Set the object's Value property.
- lngValue.Value = &HFEEDBABE
- ' Display the value of
- ' the bytes.
- Dim strHexResult As String
- strHexResult = Hex(lngValue.HiWord.HiByte) & _
- " " & _
- Hex(lngValue.HiWord.LoByte) & _
- " " & _
- Hex(lngValue.LoWord.HiByte) & _
- " " & _
- Hex(lngValue.LoWord.LoByte)
- ' Display the result in the Debug window.
- Debug.Print Hex(lngValue.Value) & " " _
- & strHexResult
- End
- #End If
- End Sub
-