开发者

Print CString to Messagebox

How to correctly print a CString to messagebox? There is nothing appear..

CString testing;
testing = ExecuteExternalProgram();

Mess开发者_StackOverflow中文版ageBox(NULL, testing, L"test", MB_OK);


try AfxMessageBox.

http://msdn.microsoft.com/en-us/library/as6se7cb(v=vs.71).aspx

lpszText Points to a CString object or null-terminated string containing the message to be displayed in the message box.

or do:

MessageBox(NULL, testing.GetBuffer(), L"test", MB_OK);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜