工作线程向主线程中发送信息(MFC+VS2008)
摘要:在主线程dlg文件中,调用一个子线程,子线程执行完毕后向主线程发回执行完成信息1 子线程主要定义内容:class subthread{ public:subthread(CWnd *p):m_pMainWnd(p){}void Run(Parame const & parame){ CWndThread *pThread=AfxBeginThread(subthread::ThreadFunc,m_pMainWnd);}static UINT ThreadFunc(LPVOID pParame){ ((CWnd *)pPrarame)->SendMessage(WM_TEST_M
阅读全文
transform 转换大小写
摘要:首先看一下transform的原型template < class InputIterator, class OutputIterator, class UnaryOperator > OutputIterator transform ( InputIterator first1, InputIterator last1, OutputIterator result, UnaryOperator op );template < class InputIterator1, class InputIterator2, c...
阅读全文