CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

View Poll Results: Is the MSDN the best resource for Windows developers

Voters
2. You may not vote on this poll
  • Sure Is Soldier

    0 0%
  • No - Forums Rule

    1 50.00%
  • Google Wins Every Time

    0 0%
  • Who Knows

    1 50.00%
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2004
    Posts
    5

    Question Out-Of-Process objects and COM+

    I am trying to add an out-of-process service component to a COM+ application using the Component Services console. The out-of-process service is in the form of an .EXE compiled using C++. Although when I install my application this service is registered and all the registry keys have been set up, the service is not available from the "Import components that are already registered" list.

    So I attempted to "Install A New Component" and although the wizard recognises the .EXE as a COM+ compatible component and picks up the typelib and the interface the dialog still does not let me add the component.

    The only snippet of info that I can find on the web states:
    A COM server, implemented as an .EXE application, which runs outside the process of its client, either on the same machine or a remote machine. Out-of-process server can not be installed into
    COM+ Application.

    Is this correct ?
    IIS after all has it's own out-of-process services installed.

    Any help would be much appreciated. I am new to COM+ and am working with a legacy application and MSDN does not have what I'm looking for.

    Cheers in advance

  2. #2
    Join Date
    Mar 2002
    Location
    Philadelphia
    Posts
    150
    What version of Visual Studio are you using?
    Sincerely,
    - Ron

  3. #3
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125
    A COM+ component can not be an "out of process" component. It must run in the context of the process that COM+ creates for it.

    As a result it DOES run "out of process" with respect to the caller/user.


    I have been doing all of my COM+ work in C# for about the past two years, so I dont have handy the exact method for setting this up in an unmanaged environemtn, but I am sure someone else will.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  4. #4
    Join Date
    Apr 2004
    Posts
    5
    Microsoft Visual C++ 6.0

  5. #5
    Join Date
    Apr 2004
    Posts
    5
    So a .EXE cannot be added as a component to a COM+ application, period.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured