按照教程搬运了一个程序,但是却出现了如下错误,想问一下是什么原因,应该怎么解决?

试试下面的3种写法:
button =Application->MessageBox(L"你确定要结束程序吗?",L"关闭");
或者:
button =Application->MessageBox(_T("你确定要结束程序吗?"),_T("关闭"));
或者
WCHAR w1[30] = "你确定要结束程序吗?";
WCHAR w2[10] = "关闭";
button =Application->MessageBox(w1,w2);