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

Thread: MFC Beep

  1. #1
    Join Date
    Nov 1999
    Location
    Bordeaux
    Posts
    1

    MFC Beep

    Hello,
    I'm sour that you thing my question is easy,
    but I just like to know how to make a beep (not default system sound) in a MFC application.

    Thanks


  2. #2
    Join Date
    Oct 1999
    Posts
    7

    Re: MFC Beep

    You might want to try
    MessageBeep(0xFFFFFFFF);


  3. #3
    Join Date
    May 1999
    Location
    West Sussex, England
    Posts
    1,939

    Re: MFC Beep

    You can use MessageBeep() with any of these parameters that should have alternate sounds associated with them :

    -1 Standard beep using the computer speaker
    MB_ICONASTERISK SystemAsterisk
    MB_ICONEXCLAMATION SystemExclamation
    MB_ICONHAND SystemHand
    MB_ICONQUESTION SystemQuestion
    MB_OK SystemDefault

    HTH


    Roger Allen
    Q2 - [CB]RIGamortis
    ICQ - 31764540
    Please use meaningful question titles - "Help me" does not let me know whether I can help with your question, and I am unlikely to bother reading it.
    Please remember to rate useful answers. It lets us know when a question has been answered.

  4. #4
    Join Date
    Mar 2012
    Posts
    1

    Re: MFC Beep

    Esy like: Beep(frequency,length), try:

    http://www.codeproject.com/Articles/...Implementation

  5. #5
    Join Date
    Jan 2002
    Location
    Houston, TX
    Posts
    1,421

    Re: MFC Beep

    I bet the OP got this resolved sometime in the past 12 years!
    Be sure to rate those who help!
    -------------------------------------------------------------
    Karl - WK5M
    PP-ASEL-IA (N43CS)
    PGP Key: 0xDB02E193
    PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

  6. #6
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: MFC Beep

    @Pro_C: please don't wake up the grandpa's topics!

    [ Thread closed ]
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

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