This topic pertains only to applications written in C++. DirectX for Visual Basic does not support MIDI capture.