Copyright © 2013-2014 MultiMedia Soft

MidiVirtualKeyboard.MidiOutputConnect method

Previous pageReturn to chapter overviewNext page

Remarks

 

Connects the virtual piano keyboard to the given MIDI output device. After the connection is established, the connected MIDI output device can be disconnected through the MidiVirtualKeyboard.MidiOutputDisconnect method.

 

In order to establish the connection, the involved output device must have been previously opened through the MidiDevices.Open method.

 

For further details about the use of the virtual MIDI keyboard see the MidiVirtualKeyboard object section and the How to manage the virtual MIDI piano keyboard tutorial.

 

 

Syntax

 

[Visual Basic]

control.MidiVirtualKeyboard.MidiOutputConnect (

hWndKeyboard as OLE_HANDLE,

nDeviceUniqueId as Integer

) as enumDjcErrorCodes


 

[C++]

short control.MidiVirtualKeyboard.MidiOutputConnect (

OLE_HANDLE hWndKeyboard,

short nDeviceUniqueId

);


 

 

 

Parameter

Description

 

 

hWndKeyboard

Handle of the virtual keyboard as returned by the call to the MidiVirtualKeyboard.Create method

nDeviceUniqueId

The unique identifier of the MIDI output device returned by a previous call to the MidiDevices.Open method

 

 

Return value

 

Value

Meaning

 

 

enumDjcErrorCodes.ERR_DJC_NOERROR (0)

The call was successful.

Negative value

An error occurred: see the LastError property for further error details or for a list of the possible error values.