登录
首页 » Visual C++ » OnlyOneInst

OnlyOneInst

于 2011-04-21 发布 文件大小:19KB
0 364
下载积分: 1 下载次数: 6

代码说明:

  VC++ 禁止运行程序的多个实例,程序根据主窗口类名和主窗口名判断是否已经有实例存在,如果存在就将其激活,并显示出来,如果是最小化的就还原窗口;如果有实例存在,则返回False并退出。 (VC++ prohibits running the program multiple instances of the program under the main window class name and the main window name to determine whether there are examples exist, if it will activate and show, if it is minimized to restore the window if examples exist, Returns False and exit.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • ShareMem
    通过内存映射对象实现程序和进程间的内存共享。(Implement programs and memory sharing between processes through a memory-mapped object.)
    2016-10-21 18:00:22下载
    积分:1
  • Registry
    修改操作系统注册表,包括实例简介,创建过程,运行效果等等。(Modify the operating system registry, including examples of profiles, the creation process, run the effect and so on.)
    2008-03-31 20:59:54下载
    积分:1
  • VCPPMulti-COM
    windows下的VC++有关于多com接口的编程,是一个在工程中实际用过的例子。(under windows with VC++ programming interface for multi-com, used in a real project.)
    2011-10-05 23:10:53下载
    积分:1
  • MeDelete
    SelfDelete(可以删除自身的VC++源码(巳通过了调试)) 为了实现程序自删除功能,我们可以通过多进程的方法解决这个问题。可执行文件在结束返回前,创建一个运行命令窗口的新进程(在Windows98中为Command进程,在Windows2000/XP中为CMD进程),当然该命令窗口以隐藏方式执行,并通过传递参数执行删除功能。为了避免可执行文件的映像还在内存中就执行删除,需要把当前进程设置为实时优先级,而命令窗口进程设置为很低的IDLE优先级,这样首先可执行文件结束返回,再运行命令窗口的删除命令,就实现了该文件自身的删除功能。 (SelfDelete (you can delete its own VC++ source code (had passed debugging)) In order to achieve the program from the delete function, we can multi-process methods to solve this problem. Return before the end of the executable file, run the command window to create a new process (in Windows98 process for the Command, in Windows2000/XP process for CMD), of course, the command window to hide the manner and to perform delete functions by passing a parameter . In order to avoid the executable file image still in memory on the implementation of delete, you need to set the current process for real-time priority, and the command window to set the process priority to low IDLE, so the end of the first return to the executable file, then run the command window delete command, the file itself to achieve the delete function. )
    2011-06-26 23:22:21下载
    积分:1
  • Adapter
    一个在VC10环境下编写的适配器模式的例子,可以通过这个demo程序,加深对适配器模式的理解(Example of a VC10 environment written adapter mode, through this demo program to deepen the understanding of the Adapter pattern)
    2012-11-29 16:34:58下载
    积分:1
  • luckyProgram
    自用的摇号软件,C++实现的,有很多不足之处。大家一起改进吧,亲们(my test program for lucky)
    2016-11-04 13:21:45下载
    积分:1
  • 6416198
    Similar to VB property sheet controls(Similar to the VB property sheet controls)
    2017-07-19 01:30:36下载
    积分:1
  • Gina1
    可以替换windows登录的控制功能的gina.dll(replace widnows msgina.dll for login)
    2010-10-21 19:12:21下载
    积分:1
  • mangemaent
    存储管理的主要功能之一是合理地分配空间。请求页式管理是一种常用的虚拟存储管理技术。 本实验的目的是通过请求页式管理中页面置换算法模拟设计,了解虚拟存储技术的特点,掌握请求页式存储管理的页面置换算法。(One of the main functions of storage management is a reasonable allocation of space. The requested page style management is a common virtual storage management technology. The purpose of this study is to page through the request-type management page replacement algorithm for analog design, understanding the characteristics of virtual storage technology, master requested page storage management page replacement algorithm.)
    2010-05-29 16:05:23下载
    积分:1
  • Win32Application
    VC++获取到Windows开机运行的时间,不是开机时间,而是从开机后到现在的运行时间,也就是一次开机所运行的时间,如果关机了,可能就不准确了。(The VC++ get to the Windows boot running time is not boot time, but from the boot to the running time, which is the time you turn on the running time, shutdown, and may not be accurate.)
    2013-04-24 17:46:46下载
    积分:1
  • 696516资源总数
  • 106611会员总数
  • 19今日下载