Visual C++: Unable to invoke method from another class

放肆的年华 提交于 2019-12-05 21:07:56

Your program seems to be a WinForms C++/CLI GUI application. So, if you want to show some output, instead of using cout (which is fine for C++ console apps, not for GUI-based WinForms apps), you could use something like MessageBox::Show():

//
// Instead of : 
//
//    cout << "Clicked" << endl;
//
MessageBox::Show( L"Clicked" );
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!