我想显示一个时间 但是时间是int型的数字
而messagebox要求的参数是const char *
请问怎样才能正常显示出来呢?
而messagebox要求的参数是const char *
请问怎样才能正常显示出来呢?
解决方案 »
- 现在能获得HANDLE,可以有办法调用CM_Request_Device_Eject没?
- 关于安装directx问题?为什么我安装的DirectX没有directshow
- 使用GetProcessMemoryInfo函数问题.请大家帮忙
- 新手请教! 如何往一个Dialog中的 List Box添加内容。
- 数据库删除记录集怎么做
- 大侠们帮忙支个招啊,关于ActiveX DLL,用于HTML ,多加点分,或请客都没问题!
- 如何从命令行立刻返回?
- 如何动态控制工具栏中的按钮?
- 能否通过对话框的资源ID得到对话框的句柄~~~?
- 什么是实例呀?
- 崩溃之前找到工作,郑州贴,散分
- 高分求救!!程序错误解决就给分
int i = 2007;
strTmp(_T("%d"),i);
MessageBox(strTmp);
int i = 2007;
strTmp(_T("%d"),i);
MessageBox(strTmp);改为CString strTmp;
int i = 2007;
strTmp.Format(_T("%d"),i);
MessageBox(strTmp);
{
unsigned short yaer;
unsigned char month;
unsigned char day; //...
};tm_t tm = {2007, 6, 11};CString strTime;
strTime.Format("%d-%d-%d", tm.year, tm.month, tm.day);MessageBox(strTime);
int Second=m_time%60;
CString strTmp;
strTmp.Format(_T("d%:d%"),Minite,Second);
MessageBox(strTmp);我这样写对不对啊???