L
L
logan baby2021-08-30 13:57:08
C++ / C#
logan baby, 2021-08-30 13:57:08

How to create a dialog box with one button in C++?

you need to create a dialog box with a single "ok" button. how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cunion, 2021-08-30
@loganbaby

#include <Windows.h>

int main(int argc, char** argv)
{
  MessageBox(0, TEXT("Some text"), TEXT("Some text"), MB_OK);
  return 0;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question