DirectX SDK |
This tutorial pertains only to applications written in C++. See DirectMusic Visual Basic Tutorials.
Before making any calls to DirectMusic, you have to initialize COM as follows:
if (FAILED(CoInitialize(NULL))) { // Terminate the application. } // Else full speed ahead!