System::Windows::Forms::MessageBox::MessageBox(NULL, s.str(), "Количество дней когдя 0" , MessageBoxButtons::OK); MessageBox error in this line: no overloaded function takes 4 arguments
System::Windows::Forms::MessageBox::MessageBox(NULL, s.str(), "Количество дней когдя 0" , MessageBoxButtons::OK); MessageBox error in this line: no overloaded function takes 4 arguments
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); Source: https://ru.stackoverflow.com/questions/527556/
All Articles