Instantiating com object in atl service 
Author Message
 Instantiating com object in atl service

I created an ATL service from the wizard and am attempting to create an
instance of a com server we already have, but to no avail. I am using win
2k. When I run the service as a server I can step through the com creation
and the server is started, just not when started as a service. I have tried
having the service login as me no luck. Any guesses?

--

                 Jim



Mon, 04 Nov 2002 03:00:00 GMT  
 Instantiating com object in atl service
I think I stumbled onto the answer to my own question. I ran dcomcnfg and
made the server always run in my context, now it appears to run.

--

                 Jim


Quote:
> I created an ATL service from the wizard and am attempting to create an
> instance of a com server we already have, but to no avail. I am using win
> 2k. When I run the service as a server I can step through the com creation
> and the server is started, just not when started as a service. I have
tried
> having the service login as me no luck. Any guesses?

> --

>                  Jim



Mon, 04 Nov 2002 03:00:00 GMT  
 Instantiating com object in atl service
Beware that now this COM service is running with your credentials. If have
some calls from external components (from someone else,) and your object
does file processing or any such sensitive operations on the local or remote
machine, then it will be running as you and not as the person who called
that method. If you dont care, then its ok but if you do care about the
privileges available, you might want to look into setting up security
properly on the launch and access levels.

--
<mvp val="vc++">
Girish Bharadwaj
</mvp>

Quote:
> I think I stumbled onto the answer to my own question. I ran dcomcnfg and
> made the server always run in my context, now it appears to run.

> --

>                  Jim



> > I created an ATL service from the wizard and am attempting to create an
> > instance of a com server we already have, but to no avail. I am using
win
> > 2k. When I run the service as a server I can step through the com
creation
> > and the server is started, just not when started as a service. I have
> tried
> > having the service login as me no luck. Any guesses?

> > --

> >                  Jim



Fri, 08 Nov 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. ATL Service instantiating a VB com object

2. ATL: instantiating a COM object within its own implementation DLL

3. ATL Service with COM Object called by ISAPI Extension

4. Problem debugging VB COM object from a ATL-Service

5. passing COM object pointers to another COM object in ATL

6. ATL COM - Passing ATL COM classes through another ATL COM class in the same app

7. How to instantiate a com object?

8. List of instantiated objects (from within ATL DLL)

9. Instantiating COM objects in C#

10. C#-LateBinding/Instantiating COM objects

11. Cannot start service ATL COM Service

12. Connection points between a VB COM-based and ATL COM-based (NT Service) MTA

 

 
Powered by phpBB® Forum Software