类型转换 请问: 我用 CTime time; time=GetCurrentTime();得到了时间,但我想用messagebox把它显示出来,应该怎么去写代码呢?谢谢指教! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看能不能先将它转换成CString. http://www.csdn.net/Develop/Read_Article.asp?id=12365http://www.vckbase.com/study/article/data_convert.htm CString Hour;CString Min;CString Sec;Hour.Format("%d", time.GetHour());Min.Format("%d", time.GetMiniute());Sec.Format("%d", time.GetSecond());MessageBox(Hour+Min+Sec,"ok",MB_OK); See the sample below , just what u want :http://www.codeproject.com/datetime/dtconverter.asp CTime::Format()CTime::FormatGmt()可以将他转换成串。 如何限制cbcgpprop可编辑的属性值的长度 请大家给我一点vc开发应用软件的信心吧 服务程序中使用socket问题 怎么样才能让简单颜色取点外挂程序实现模糊比较 一个简单的多线程问题,各位高手帮帮忙! 如何在没有选定文本的情况下,使菜单的相关项变灰 怎么会有Runtime error,我是EXE文件,在我的机器上没有,在别的没有安装VC的有?少什么动动吗 请问字符映射表的工作原理 1 com连接点的问题 类型转换 DLL里面县是一个模式对话框
http://www.vckbase.com/study/article/data_convert.htm
CString Min;
CString Sec;
Hour.Format("%d", time.GetHour());
Min.Format("%d", time.GetMiniute());
Sec.Format("%d", time.GetSecond());
MessageBox(Hour+Min+Sec,"ok",MB_OK);
CTime::FormatGmt()
可以将他转换成串。