473,769 Members | 2,402 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

inproc vs outproc vs remote

I just got my first COM interop to work... only to realize that is does not
do quite what I want it to do. my little client app (in unmanaged C++) that
calls my nice C# objects through COM does more than just call the interface
methods, it instantiates a new instance of the C# class, which is its own
executable. I understand that this is normal behavior for COM, since it
defaults to in-process work (as most COM objects are contained in DLLs).

I need to have this little client attach to an already existing and running
C# application, and then use the interface to call the functions in the other
process.
I read that this is possible, by declaring the C# object as an out of
process (outproc) server (the .exe) and requesting the right way inside the
C++ code.
I just can find no information on how to accomplish this.

Does anyone have a link of somewhere I can look to cause unmanaged C++ COM
calls to look for an out of process component first.

Possibly even moving on to a remote component as well.

Thanks in advance,

Andrew S. Giles
Nov 16 '05 #1
0 4049

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1384
by: Patrick Mezenberg | last post by:
Hi all, It should be possible to let inproc COM-components live in a surrogate process (for instance in the default Dllhost.exe surrogate process, for more info see http://msdn.microsoft.com search for: "DLL Surrogates (COM)"). Somehow this "feature" does not seem to work when running inproc COM-components launched within a python environment using the win32com package (the inproc component then lives in the python.exe process). Does...
3
17549
by: Don | last post by:
I am building a string from a combination of hardcoded string literals and user input (via textbox). I know about using @"c:\temp\filename.txt" to ignore escape sequences. Now let's say I have a string variable (to hold file path information) that is populated from a textbox. When I view the contents of the variable, while debugging, it shows @"c:\temp\filename.txt". But, when I concatenate it with other string literals or variables using...
1
1867
by: ciaran | last post by:
I have a web app. running on a dual processor with 1GB RAM and SQL 200 Database At any one time there can be around 20/30 users accessing it through the web interfac performing tasks such as searching through DataSets, and a further 20/30 users performin Replication using HandHeld Devices with SQL CE From a web app. point of view I tend to use InProc Session State quite a lot to hold m DataSets, etc. I'm aware of the different Session...
0
4749
by: --alec | last post by:
Is there a maximum recommended value for setting the timeout value in web.config section <sessionState mode="InProc" timeout="20" /> What are the possible repercussions of setting this value to high? I have a user base whose job tasks require them at times to open a asp.net page and ignore it for extended periods of time. The default value of 20 is
13
2448
by: James Hunter Ross | last post by:
We love the ASP.NET "Session" concept and make good use of it. But, getting close to deployment we find we lose sessions far too often, probably due to application restarts, etc. We hope to eliminate these restarts, but we're not sure that can be achieved. (We are exploring who/what might be touching web.config or assemblies or other files in our application, but have found nothing so far.) We have some serious rewriting to do if all...
1
2077
by: ankushmn | last post by:
i am working on web application in Asp.Net, C# in which we are using Outproc session mgt. As we manage session using Outproc there are two ways 1) Sql Server 2) State Server in above we are using State session mgt. In this case i want to know if we use Application variable then where
2
2816
by: teo | last post by:
I need to use the 'Session_End' event in the 'Global.asax' file. It only works if in the 'Web.config' file the 'sessionState mode' Tag is present and its value is set to "InProc" 1) I thought it was a default setting, wasn't it?
4
2284
by: Smokey Grindle | last post by:
What are the advantages of using ASP.NET's session state server service over using InProc state sessions? Also if you have a state server service running, is there any way to find out when a session ended? with the inproc ones you can use the global.asax's session_ended method...
4
2159
by: Alex | last post by:
Hello, This is a follow-up to my earlier post about having issues with our application pool recycling. We currently use Session State InProc, but if I were to choose to move the existing application to SQL instead, would the only change in the application be the SessionState setting within web.config? I know I'd also need to setup our MS SQL database to handle sessions (detailed in MS Article 317604), but outside of this, is there...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10043
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.