- 博客(3)
- 资源 (1)
- 收藏
- 关注
翻译 CWraper
class Y { public: void PrintTest() { printf("Fun print\n"); }; }; template class CProxySuffix { public: CProxySuffix(X *f) :m_f(f) { } ~CProxySuffix() { printf("Suffix()\n"); } X* opera
2016-06-11 12:39:12 217
原创 c++临界区域-加锁
#include class CCritSection { friend class CLock; public: CCritSection() { InitializeCriticalSection(&_critSect); } ~CCritSection() { DeleteCriticalSection(&_critSect); } void Acquire(
2016-06-02 23:08:02 1668 1
转载 windows给同名多进程发消息
#include DWORD g_processID; //进程句柄 DWORD g_ThreadID; //线程句柄 CRITICAL_SECTION g_hCritical; //windows 锁句柄(确切的应该叫关键代码段) bool IsExsit(CString strExeFile) { //加锁 //::Ent
2016-01-15 23:40:30 454
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人