01 2010 档案
摘要:不废话,上代码#include#includeusing namespace std;DWORD WINAPI fun1proc(LPVOID lpParameter);DWORD WINAPI fun2proc(LPVOID lpParameter);int index=0;int tickets...
阅读全文
摘要:互斥对象(mutex)属于内核对象,它能够确保线程拥有对单个资源的互斥访问权。互斥对象包含一个使用数量,一个线程ID和一个计数器。其中ID用于表示系统中的哪个线程当前拥有互斥对象,计数器用于指明该线程拥有互斥对象的次数。#include#includeDWORD WINAPI fun1proc...
阅读全文
摘要:Unicode下CString转TCHAR TCHAR* szMsg = new TCHAR[wcslen(strAdbCmd)]; szMsg = strAdbCmd.GetBuffer(strAdbCmd.GetLength()); strAdbCmd.ReleaseBuffer();用完了别忘...
阅读全文