int c;
+ HMIDIOUT Handle = NULL;
+ UINT Result;
+
printf("MIDI output devices: %d\n", outs);
for (c = 0; c < outs; c ++)
printf("Opening MIDI output #0\n");
- HMIDIOUT Handle = NULL;
- UINT Result = midiOutOpen(&Handle, 0, 0, 0, CALLBACK_NULL);
- printf("Result == %d Handle == %d\n", Result, (int)Handle);
+ Result = midiOutOpen(&Handle, 0, 0, 0, CALLBACK_NULL);
+ printf("Result == %d Handle == %p\n", Result, Handle);
// play something:
midiOutShortMsg(Handle, 0x007f3090);