MessageBox()输出变量信息

[主题]

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


[例子]

DWORD dwErrorCode = GetLastError(); 

WCHAR *sErrorInfo = L"OpenScmManager() failed. Error code: "; 

CString csInfo; csInfo.Format(L"%s%d", sErrorInfo, dwErrorCode); 

MessageBox(csInfo);






你可能感兴趣的:(message)