摘要:
一、一次只运行一个程序实例下列两种方式都可以实现,建议采用第二种方式:1、if(FindWindow(NULL,"程序标题"))exit(0);2、BOOLCDemoTBarEApp::InstanceIsRun(){HANDLEm_hMutex;m_hMutex=::CreateMutex(NULL,TRUE,_T("YourApplication"));ASSERT(m_hMutex);if(... 阅读全文
posted @ 2006-03-11 13:45
吴文力
阅读(4977)
评论(1)
推荐(0)