🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11110

Re: synchronizing access to named mutexes

#11110
From: Dennis Jones
Date: Fri, 27 Feb 2004 16:30
33 lines
2390 bytes
"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:403ef129@newsgroups.borland.com...
>
> "Dennis Jones" <djones@nospam.com> wrote in message
> news:403ea9c9$1@newsgroups.borland.com...
>
> > I recently wrote a DLL that communicates with one of my
> > EXE's via shared memory.  The DLL is used by a third-party
> > program and provides a means by which the third-party
> > application can communicate with my EXE.
>
> You might want to consider using ActiveX/COM, it is better suited for that
> kind of thing.  If you give your EXE a COM Automation object, the
> third-party can instantiate the COM object (which automatically starts
your
> EXE it it is not already running), and then the third-party can
communicate
> with the EXE directly.

I think you suggested this idea once before Remy, but the problem there is
that the third-party application calls the Windows API via a scripting
language.  It does not have the ability to directly instantiate COM objects,
hence the need for my DLL as an inteface into the EXE.  I suppose I could
make the DLL create a COM object, and that might be one way to go.

But rather than changing the entire mechanism, it would be much easier if
there were a simple solution to the problem from within the context of the
existing mechanism.  I was thinking there might be a way to determine the
number of handles currently open on a mutex, and that is going to be my next
tack.

- Dennis
Technical Details
Message-ID: <403f70b1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <403ea9c9$1@newsgroups.borland.com> <403ef129@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,147e3de49808f5a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-27 08:40:59 PST
From: "Dennis Jones" <djones@nospam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <403ea9c9$1@newsgroups.borland.com> <403ef129@newsgroups.borland.com>
Subject: Re: synchronizing access to named mutexes
Date: Fri, 27 Feb 2004 08:30:42 -0800
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 204.200.27.7
Message-ID: <403f70b1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1077899441 204.200.27.7 (27 Feb 2004 08:30:41 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail