#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    3
    Rep Power
    0

    Image instead beep


    Hi, I have just one question: I do mathematics job on my computer and use one program. That program beep when specific number is found. I wont to "change" beep with any picture as notification.
    This is part of code for "beeping"

    Code:
    if(IniGetInt(INI_FILE, "BeepOnSuccess", 0)) {
    do {	// If stopping on this success, beep infinitely!
    #if !defined(WIN32) || defined(_CONSOLE)
    flashWindowAndBeep (20);
    #else
    flashWindowAndBeep (50);
    #endif
    Can someone correct this part of code and beep replace with image?
    Thanks for any reply
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    187
    Rep Power
    83
    How about using a GUI MessageBox?

    Code:
    #pragma comment(lib, "user32.lib") 
    #include <windows.h>
    
    int main(void)
    {
            MessageBox(NULL, "The message", "The caption", MB_OK);
            return 0;
    }
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    3
    Rep Power
    0
    Originally Posted by BobS0327
    How about using a GUI MessageBox?

    Code:
    #pragma comment(lib, "user32.lib") 
    #include <windows.h>
    
    int main(void)
    {
            MessageBox(NULL, "The message", "The caption", MB_OK);
            return 0;
    }
    If I send you a code, can you insert those commands for me? I will try to compile myself ( know to do under Linux)
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    187
    Rep Power
    83
    If I send you a code, can you insert those commands for me? I will try to compile myself ( know to do under Linux)
    Post your code on the forum.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    3
    Rep Power
    0
    .....

IMN logo majestic logo threadwatch logo seochat tools logo