文件名称:OneInstantance
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 25kb
- 下载次数:
- 0次
- 提 供 者:
- l***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
让程序只运行一个实例的简单实用的方法,首先在InitInstance()函数中创建一个同步对象,如果(GetLastError()返回ERROR_ALREADY_EXISTS就表明存在
-Allow to run only one instance of the simple and practical method, first of all, in the InitInstance () function to create a synchronization object, if (GetLastError () return ERROR_ALREADY_EXISTS to indicate the presence
-Allow to run only one instance of the simple and practical method, first of all, in the InitInstance () function to create a synchronization object, if (GetLastError () return ERROR_ALREADY_EXISTS to indicate the presence
(系统自动生成,下载前可以参看下载内容)
下载文件列表
只运行一个实例
..............\Example.aps
..............\Example.clw
..............\Example.cpp
..............\Example.dsp
..............\Example.dsw
..............\Example.h
..............\Example.ncb
..............\Example.opt
..............\Example.plg
..............\Example.rc
..............\ExampleDlg.cpp
..............\ExampleDlg.h
..............\ReadMe.txt
..............\res
..............\...\Example.rc2
..............\Resource.h
..............\StdAfx.cpp
..............\StdAfx.h
..............\Example.aps
..............\Example.clw
..............\Example.cpp
..............\Example.dsp
..............\Example.dsw
..............\Example.h
..............\Example.ncb
..............\Example.opt
..............\Example.plg
..............\Example.rc
..............\ExampleDlg.cpp
..............\ExampleDlg.h
..............\ReadMe.txt
..............\res
..............\...\Example.rc2
..............\Resource.h
..............\StdAfx.cpp
..............\StdAfx.h