🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: DCOM & NT services

#4471
From: Colin B Maharaj
Date: Sun, 29 Jan 2006 01:29
48 lines
3428 bytes
Hi David, I have done a couple of things with DCOM, except that the DCOM 
application I have came in a VC++ bundle (jikes sorry) that I got from 
Nortel, and I used VC++ to compile the code except the application is 
not a Service. It is an interactve application.

I then used the srvany.exe utility to setup and run the application as a 
service. This seems to work fine. What you should do however is to add a 
dependancy called RpcSs (thanks to Remy on this )  to ensure RPC 
services are running before you "service wrapped application" is executed.

The only issues is authentication in that you need to create an account 
and add the 'RUN as service' privilege to the account and assign this 
account to the srvany service, since DCOM is heavly dependant on MS 
access control stuff.

Another snag (If you have not come across it) is that DCOM on XP SP2 is 
kinda turned off and gives the appearance that it is broken in XP SP2. 
Took me a while to get it working but I figured it out, and I can send 
you this if you like.

Hope this helps....


david johnson wrote:
> Just a quick question, didn't know the best newgroup for this though.
> 
> This probably shows my lack of understanding but hopefully someone will 
> explain this two me.  I've been developing a client / server applicaiton 
> with DCOM where the server runs on one machine and has many clients 
> connecting to it form other machines.  The server has a management interface 
> for controlling the connections.
> 
> When a run a client, it instanciates the server and the server is loaded up 
> on the "server" machine.  What I want to know is, what happens if no one is 
> logged on to the windows machine i.e. it is just sitting at the login 
> screen.  Will the server app still start?  If so, what then happens when 
> someone logons on - will they see the server GUI on there desktop?
> 
> I'm not sure what sure what the results are...  I need to server to run 
> regardless of if a user is logged on to the server PC and so this is 
> strating to sound a bit like a service with a seperate configuration GUI. 
> Is it possible to wrap DCOM into an NT service?  Are there any issues with 
> this.
> 
> Any pointers would be greatly appreshiated.  I've reasd all the DCOM 
> references I can find but no seem to answer this question... 
> 
> 
Technical Details
Message-ID: <43dc1984$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43dbb7d8@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,941a73962d88558e
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 28 Jan 2006 21:29:17 -0400
From: Colin B Maharaj <noreply@myhost.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a4) Gecko/20040927
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: DCOM & NT services
References: <43dbb7d8@newsgroups.borland.com>
In-Reply-To: <43dbb7d8@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 200.108.12.138
Message-ID: <43dc1984$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1138497924 200.108.12.138 (28 Jan 2006 17:25:24 -0700)
Lines: 48
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail