感人的爱情电视剧:在VC.NET 2005 中,wsprintf() 怎么用?

来源:百度文库 编辑:神马品牌网 时间:2024/04/30 17:02:21
在VC.NET 2005 中,wsprintf() 怎么用啊?
比如我这么写

char* strMsg;
wsprintf(strMsg,"IP地址为%d.%d.%d.%d的计算机于%d年%d月%d日%d时%d分%d秒关闭",nField[0],nField[1],nField[2],nField[3],m_tDate.GetYear(),m_tDate.GetMonth(),m_tDate.GetDay(),m_tTime.GetHour(),m_tTime.GetMinute(),m_tTime.GetSecond());
MessageBox(strMsg,"提示",MB_OK);

会出错误的:
error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'char *' to 'LPCTSTR'