CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Calling sytem beep in VC++ in MFC

    Hi.
    I have a problem. How do I call system beep or some other such alert from c++ I know that we can use the escape sequence \a to do so. But how to use it. Any suggestion?


  2. #2
    Join Date
    Oct 1999
    Posts
    5

    Re: Calling sytem beep in VC++ in MFC

    MessageBeep(UINT) is part of the standard Win32 API. Its parameter is a messagebox icon code like MB_ICONSTOP, MB_ICONINFORMATION etc.


  3. #3
    Join Date
    Sep 1999
    Location
    London , UK
    Posts
    22

    Re: Calling sytem beep in VC++ in MFC

    Beep is a flexible SDK function:

    BOOL Beep(
    DWORD dwFreq, // sound frequency, in hertz
    DWORD dwDuration // sound duration, in milliseconds
    );


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured