Microsoft DirectX 8.1 (Visual Basic)

DirectMusicLoader8.LoadBandFromResource

The LoadBandFromResource method loads a band from a resource.

object.LoadBandFromResource( _
  moduleName As String, _
  resourceName As String _
) As DirectMusicBand8

Parts

object

Resolves to a DirectMusicLoader8 object.

moduleName

Name of the module containing the resource.

resourceName

Identifier of the resource containing the band. The resource must be of type "DMBAND".

Return Values

Returns a DirectMusicBand8 object.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to one of the following values:

DMUS_E_FAIL
DMUS_E_INVALIDARG
DMUS_E_OUTOFMEMORY
DMUS_E_INVALID_BAND
DMUS_E_LOADER_FAILEDCREATE
DMUS_E_LOADER_FORMATNOTSUPPORTED

See Also