开发者

Print CString to Messagebox

开发者 https://www.devze.com 2023-02-02 18:36 出处:网络
How to correctly print a CString to messagebox? There is nothing appear.. CString testing; testing = ExecuteExternalProgram();

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

精彩评论

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