View Poll Results: Is the MSDN the best resource for Windows developers
- Voters
- 2. You may not vote on this poll
-
Sure Is Soldier
-
No - Forums Rule
-
Google Wins Every Time
-
Who Knows
-
April 8th, 2004, 08:14 AM
#1
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
-
April 8th, 2004, 08:55 AM
#2
What version of Visual Studio are you using?
Sincerely,
- Ron
-
April 8th, 2004, 09:07 AM
#3
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
-
April 8th, 2004, 09:12 AM
#4
-
April 8th, 2004, 09:50 AM
#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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|