Microsoft DirectX 8.1 (Visual Basic)

DirectXFileBinary.Read

Reads the binary data.

object.Read( _
    Data As Any, _
    Size As Long) As Long

Parts

object
Object expression that resolves to a DirectXFileBinary object.
Data
Buffer that receives the data that has been read.
Size
Long value containing the size of the Data buffer, in bytes.

Return Values

Returns a Long value set to the number of bytes actually read.

Error Codes

If the method fails, an error is raised and Err.Number can be set to one of the following values.

DXFILEERR_BADVALUE
DXFILEERR_NOMOREDATA

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.