[主题]

MFC中用MessageBox()输出变量信息


[例子]

DWORD dwErrorCode = GetLastError(); 
WCHAR *sErrorInfo = L"OpenScmManager() failed. Error code: "; 
CString csInfo; csInfo.Format(L"%s%d", sErrorInfo, dwErrorCode); 
MessageBox(csInfo);

版权声明:本文为bugchecker原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/bugchecker/archive/2011/08/18/3041627.html