Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Address.GetComponentLong

Retrieves one of the integer components in the address URL string.

GetComponentLong(sComponent As String) As Long

Parts

sComponent
Name of the component to retrieve.

Return Values

Returns the value of the requested component.

Error Codes

If the method fails, Err.Number can be set to one of the following values.

DPNERR_DOESNOTEXIST
DPNERR_INVALIDPARAM
DPNERR_BUFFERTOOSMALL

Remarks

For a discussion of the URL string, see DirectPlay Addressing.