开发者

In case of failed PlaySound(), is it possible to retrieve last error status?

I'm asking because universal GetLastError() returns ERROR_SUCCESS even if preceding PlaySound() call returned FALSE. I'm aware what winmm have specific error fun开发者_如何学运维ctions for waveOut, mixer, etc, is there a function which reflects last PlaySound() status?


No. PlaySound works or it doesn't, and it doesn't tell you why when it fails. But it's a pretty simple function; it it fails then it's almost always because the sound you told it to play isn't there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜