On 09:08 AM 1/09/2003, Dennis Saputelli said:
i know
it is relatively easy for a program to check for another instance
of itself and either allow or disallow another copy to run
some programs make it an option

i was wondering if it was feasible for a general utility to do such a
thing for specified programs

as i remember the technique was to walk the list of title bar titles
but that was back in Win3 days

There are a number of techniques (including checking for the presence of global, unique OS synchronization objects of atoms or other globally definable objects). The normal method used in Win16 doesn't work in Win32. Win16 actually had a instance variable, part of each application, that could be queried to see if this was the first, or later, instance.


Yes, it would be possible to write a utility that was associated with DDB files (replacing P99SE as the DDB editor) and then passed that file name across to the running instance. The exact details could get a little messy, depending on the details of P99SE's OLE interface. In the worst case instance it may be necessary to post key messages into P99SE to get it to open the right file. It may be that the most reliable method would be a combined P99SE server and another hook application to handle dbl-clicks on DDB files.

It would be possible but I don't know who will do it.

Ian



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* To post a message: mailto:[EMAIL PROTECTED]
*
* To leave this list visit:
* http://www.techservinc.com/protelusers/leave.html
*
* Contact the list manager:
* mailto:[EMAIL PROTECTED]
*
* Forum Guidelines Rules:
* http://www.techservinc.com/protelusers/forumrules.html
*
* Browse or Search previous postings:
* http://www.mail-archive.com/[EMAIL PROTECTED]
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Reply via email to