yashu
yashu

Reputation: 27

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?

Upvotes: -1

Views: 5317

Answers (1)

Mark Ransom
Mark Ransom

Reputation: 308520

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

Upvotes: 3

Related Questions