Article View: borland.public.cppbuilder.nativeapi
Article #8336Re: How should a COM server decline COM requests
From: Andrue Cope [TeamB]
Date: Mon, 01 Nov 2004 08:24
Date: Mon, 01 Nov 2004 08:24
33 lines
2390 bytes
2390 bytes
Bob Gonder wrote: > You have an exe, that when launched as instance 1 (i1), it does what? > Does it behave as an application, or a COM Server, or a self-contained > application that uses COM services? I have an EXE that can be launched by the user and then behaves like a normal application. It can also act as a COM server and can be launched by the system to support COM requests. My problem is that I can't have the user launched application instance trying to be a COM server. I've stopped that from happening but I'm left with the problem that I don't know how to tell the OS to load another instance to act as a server. There is no problem if the EXE hasn't been launched by the user. With multiple COM clients each client starts its own instance of the server. Obviously in this case /something/ indicates that the existing instances are 'spoken for' and that a new instance is required. > When the exe starts, it checks, and if > it is (i1), it becomes a Com Server, and relaunches itself (i2) to be > the application. Then if the user launches again, (i3) sees the flag > and becomes an application too. That's exactly what we want to do but we don't know how to code the logic that prevents an EXE from being a COM server. It is probably just a hole in the documentation but having created a COM server we need to know what to call in order to disable it. -- Andrue Cope [TeamB] [Bicester, Uk] http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<418600d4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<418206c0@newsgroups.borland.com> <lir4o05if39rf158mf6lk7m9t1pfufnc0u@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,91cd7a0a7f21d9df X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address> Subject: Re: How should a COM server decline COM requests Newsgroups: borland.public.cppbuilder.nativeapi References: <418206c0@newsgroups.borland.com> <lir4o05if39rf158mf6lk7m9t1pfufnc0u@4ax.com> User-Agent: XanaNews/1.16.4.6 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 NNTP-Posting-Host: 217.207.223.34 Message-ID: <418600d4$1@newsgroups.borland.com> Date: 1 Nov 2004 01:24:36 -0700 X-Trace: newsgroups.borland.com 1099301076 217.207.223.34 (1 Nov 2004 01:24:36 -0700) Lines: 33 X-Authenticated-User: acope Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail