Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 28th, 2004, 01:47 PM
Registered User
 
Join Date: Apr 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Semaphores

Can Someone show me an example of using semaphore to control the number of simultaneous intances of an application


 
Old May 5th, 2004, 04:08 AM
Authorized User
 
Join Date: Apr 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

DO not exactly understand.

If I want just single instance I use the app.PrevInstance.
If you need to monitor the number of instances use,
Form_Load: GetSetting ...
           increase the obtained value by one
           SaveSetting
Form_unload
          GetSetting
          decrease the obtained value by one
          SaveSetting

webdesign-tvorba webu





Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i use semaphores in C# vivekshah C# 7 March 15th, 2008 04:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.