上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 50 下一页
摘要: 1、获得系统时间。 //获得系统时间 SYSTEMTIME systime; ::GetSystemTime(&systime); CString strText = _T(“”); strText.Format(_T(“%d-%d-%d\n%d:%d:%d”), systime.wYear, systime.wMonth, systime.wDay, systime.wHour, systime.wMinute, systime.wSecond); AfxMessageBox(strText);2、获得当前时间。 //获得当前时间 CTime time; time = CTime:: 阅读全文
posted @ 2012-05-09 23:09 血马雄风 阅读(2130) 评论(0) 推荐(0)
摘要: 播放器的几个线程搞成下面这段代码(摘要): UINT playThread(LPVOID pParam){ //播放线程,固定格式 //......做变量声明,赋值等前期工作 while(SomeCondition){ //播放线程的循环 //......播放音乐,不解析 } return 0;}void CPlayerDlg::OnBnClickedPlay(){ //播放按钮响应函数 if(isThreadPause){ //判断是否暂停中 isThreadPause=false; pPla... 阅读全文
posted @ 2012-05-09 22:28 血马雄风 阅读(2444) 评论(1) 推荐(1)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 50 下一页