mciSendString won't play an audio file if path is too long
问题 When the path+filename of a file is really long, I've noticed that PlaySound(fName.c_str(), NULL, SND_ASYNC); works, but not mciSendString((L"open \"" + fName + L"\" type waveaudio alias sample").c_str(), NULL, 0, NULL); mciSendString(L"play sample", NULL, 0, NULL); Example of failing command: open "C:\qisdjqldlkjsqdjqdqjslkdjqlksjlkdjqsldjlqjsdjqdksq\dajdjqjdlqjdlkjazejoizajoijoifjoifjdsfjsfszjfoijdsjfoijdsoifoidsjfojdsofjdsoijfoisjfoijoisdjfosjfqsd\Windows Critical Stop.wav" type waveaudio