Link to home
Start Free TrialLog in
Avatar of LeighWardle
LeighWardleFlag for Australia

asked on

How to autoclose MessageBox in C/C++

Hi Experts,

How can I autoclose (say in 10 seconds) a MessageBox in C/C++?

I am using the Microsoft C/C++ Compiler.

My messageboxes all just have an OK button, e.g.

   MessageBox(
        NULL,
        buffer,
        "Connection Status",
      MB_OK
    );               


My code has these includes:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>


Regards,
Leigh
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LeighWardle

ASKER

Thanks, David.
Regards, Leigh