System::Windows::Forms::MessageBox::MessageBox(NULL, s.str(), "Количество дней когдя 0" , MessageBoxButtons::OK); 

MessageBox error in this line: no overloaded function takes 4 arguments

  • Translation: no overloaded function that takes 4 arguments. Read the description for the MessageBox function, how to use it correctly. - edem
  • If you are given an exhaustive answer, mark it as correct (a daw opposite the selected answer). - Nicolas Chabanovsky

1 answer 1

The compiler literally tells you that the MessageBox class has no function with the name MessageBox and four parameters. Opening the corresponding page in the MSDN you can see for yourself.

Apparently your code assumes the use of the static function Show the same class, in this case your code should look like this:

 System::Windows::Forms::MessageBox::Show(NULL, s.str(), "Количество дней когдя 0" , MessageBoxButtons::OK); 
  • now it gives an error: System :: Windows :: Forms :: MessageBox :: Show: none
  • I just want to send the received number to the message how to do it - Alosh