c++mfc

How to display numeric value in the MessageBox() ?in c++


I need to display the screen resolution pixels as output in MessageBox. How can i do this?


Solution

  • CString msg;
    msg.Format(_T("%d"), number);
    AfxMessageBox(msg);