Sound ping error using Visual C ++ and MFC

Is there a main function call in MFC that just reproduces input ping error?

I am looking for something similar to calling AfxMessageBox (), which simply plays the ping that is often heard on error.

+4
source share
2 answers
+7
source

Try PlaySound :

PlaySound( (LPCTSTR)SND_ALIAS_SYSTEMHAND, NULL, SND_ALIAS_ID | SND_ASYNC ); // or so 
0
source

All Articles