🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: synchronizing access to named mutexes

#11114
From: Remy Lebeau (TeamB)
Date: Fri, 27 Feb 2004 18:44
29 lines
2074 bytes
"Dennis Jones" <djones@nospam.com> wrote in message
news:403f70b1$1@newsgroups.borland.com...

> the problem there is that the third-party application calls the
> Windows API via a scripting language.

If it is using JScript or VBScript as the scripting language, then it has
access to instantiating COM objects, via the CreateObject() function.  For
example:

    Dim MyObj
    set MyObj = CreateObject("MyApp.MyObject")
    MyObj.DoSomething
    set MyObj = Nothing

> 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 do not recommend using shared memory for communications, unless the shared
memory simply contains an HWND handle to the main app's desired window that
other apps can then send messages to to perform operations.  Otherwise, if
you don't want to go COM, then there are several other IPC (Inter-process
communication) mechanisms available, such as TCP, RPC (Remote Procedure
Call), Pipes, etc.


Gambit
Technical Details
Message-ID: <403f8e17$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <403ea9c9$1@newsgroups.borland.com> <403ef129@newsgroups.borland.com> <403f70b1$1@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 10:40:36 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <403ea9c9$1@newsgroups.borland.com> <403ef129@newsgroups.borland.com> <403f70b1$1@newsgroups.borland.com>
Subject: Re: synchronizing access to named mutexes
Date: Fri, 27 Feb 2004 10:44:27 -0800
Lines: 31
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: 67.22.138.253
Message-ID: <403f8e17$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1077906967 67.22.138.253 (27 Feb 2004 10:36:07 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail