12 2008 档案

摘要:6.一次只运行一个程序实例下列两种方式都可以实现,建议采用第二种方式:1、 if( FindWindow(NULL,"程序标题")) exit(0);2、BOOL CDemoTBarEApp::InstanceIsRun(){HANDLE m_hMutex;m_hMutex = ::CreateMutex(NULL, TRUE, _T("YourApplication"));ASSERT(m_h... 阅读全文

posted @ 2008-12-04 11:21 少林 阅读 (499) | 评论 (0) 编辑 |

posts - 70, comments - 306, trackbacks - 0, articles - 4

Copyright © 2019 少林
Powered by .NET Core 3.1.0 on Linux