include <windows.h>
include <mmsystem.h>
int flag;
flag = midiOutOpen(&device, midiport, 0, 0, CALLBACK_NULL);
flag = midiOutShortMsg(device, message.word);
These code work when I am developing But after deploy to Window Shop, there is no sound
When deploy to window shop, I have checked "Background Media Playback" under Capabilities
The documentation I can find is UWP/CSharp, But I want to write C++