Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
??CHR(7) Not Ringing Bell
Message
From
26/08/1999 17:58:55
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00258095
Message ID:
00258175
Views:
13
--snip--
>
>As to your question:
>procedure beep_beep
>*
>* nBeep =  0 default sound (no icon w.r.t. MessageBox)
>*         16 critical stop (stop sign)
>*         32 question      (question mark)
>*         48 exclamation   (exclamation point)
>*         64 asterisk      (information symbol)
>*
>lparameter nBeep
>declare integer MessageBeep in Win32API ;
>   Integer nBeep
>MessageBeep(nBeep)
>return
Thanks, Mark, this function works fine. However, I need to use it in conjunction with the SET BELL TO command to play my own .WAV files.

I tried calling beep_beep(0), but it seems to always play the default Windows sound rather than the VFP one specified by SET BELL TO (surprise, surprise I guess). Is there a workaround, or any function similar to this that lets you specify a .WAV file as a parameter?

One other point worth mentioning is I would like to bind the .WAV files into my .EXE, so Win32API may not be able to find them (?).
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform