void center(char *s) { int len; len = (strlen(s)); MessageBox::Show(len); }
1>c:\users\test\documents\visual studio 2010\projects\test\test\Form1.h(90): warning C4068: unknown pragma 1>c:\users\test\documents\visual studio 2010\projects\test\test\Form1.h(116): warning C4101: 'found' : unreferenced local variable 1>c:\users\test\documents\visual studio 2010\projects\test\test\Form1.h(152): error C2665: 'System::Windows::Forms::MessageBox::Show' : none of the 21 overloads could convert all the argument types 1> c:\program files\reference assemblies\microsoft\framework\.netframework\v4.0\system.windows.forms.dll: could be 'System::Windows::Forms::DialogResult System::Windows::Forms::MessageBox::Show(System::String ^)' 1> while trying to match the argument list '(int)'
System::String
char*
MessageBox::Show(len.ToString());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)