Allow Only One Application Execution Per Windows Session
2009-11-29 11:38
274 查看
program Project1; uses Windows, Forms, Unit1 in 'Unit1.pas' {Form1}; {$R *.res} begin Application.Initialize; if 0 = GlobalFindAtom('SOME-UNIQUE-TEXT-RELATED-TO-THIS-APPLICATION') then begin GlobalAddAtom('SOME-UNIQUE-TEXT-RELATED-TO-THIS-APPLICATION') ; Application.CreateForm(TForm, Form1) ; Application.Run; end else begin Application.MessageBox( 'You can run the trial version '+ 'of this application '+ 'only once per Windows session!', 'Test Trial Protection') ; end; end.
相关文章推荐
- 《NHibernate One Session Per Request 简单实现》勘误
- Only one Looper may be created per thread
- Loadrunner 11在win7录制中失败“the recording of the application was terminated by windows due to window data execution prevention feature"
- Automation作业调度问题:Only one instance of etlslave.pl allow to run
- Windows Mobile Development Making a quality platform one application at a time(zhuan)
- org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
- 继承类的@Transactional:org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
- Only one statement is allowed per batch. A batch separator, such as 'GO', might be required between statements.
- NHibernate One Session Per Request简单实现
- java.lang.RuntimeException: Only one Looper may be created per thread
- NHibernate Session Management(One per request)
- No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
- 135 Which three statements are true about windows? (Choose three.) A. Only one window can be open at
- spring事务管理出错。No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
- SmartGwt: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
- 穿透Session 0 隔离(一)(how to use Windows service run a GUI application.)
- 虚拟主机运行ASP错误解决:HTTP/1.1 New Application Failed when allowSessionState is set to false in web.config
- Nhibernate one Session per Request的实现
- No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration
- [Question]:Is there only one Servlet Inatance in each web application of web container