p0yang01
asked on
How to run at most one instance at a time?
How can i modify the original MDI template so that at most one instance can be run simutaneously?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
create a shared segment and that will have data from all instances of the app. Use InterLockedIncrement/Dec to modify counters in the shared segment
http://www.codeguru.com/misc/single_instance2.shtml
http://www.codeguru.com/misc/single_instance3.shtml