473,748 Members | 4,030 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

InterProcess Communication, .Net to C++ communication

Hello all,

I need suggestions and possibly solutions to the problem stated below:

I have an application written purely in .NET ( Windows Form
Application) and another application that is supposed to be written in
MFC(Visual C++) or Win32 GUI Application. The problem is to communicate
data between the two applications.

for example,

If i click a button in .NET GUI application, the data(some text) shuld
be sent to the VC++ GUI application.

Both the .NET and VC++ application will run on the same PC. One option
that seems applicable is to use sockets for data communication between
the two applications. But since both application will run on the same
PC, I thought if there were some other faster options available. Like
interprocess communication etc.

Need ur thought on this.

Thanks
Cheers...

Bye

Oct 12 '06 #1
4 2081
Just a guess, but could you use Remoting? Or is that only in the CLR?

"batista" <sa*********@gm ail.comwrote in message
news:11******** **************@ c28g2000cwb.goo glegroups.com.. .
Hello all,

I need suggestions and possibly solutions to the problem stated below:

I have an application written purely in .NET ( Windows Form
Application) and another application that is supposed to be written in
MFC(Visual C++) or Win32 GUI Application. The problem is to communicate
data between the two applications.

for example,

If i click a button in .NET GUI application, the data(some text) shuld
be sent to the VC++ GUI application.

Both the .NET and VC++ application will run on the same PC. One option
that seems applicable is to use sockets for data communication between
the two applications. But since both application will run on the same
PC, I thought if there were some other faster options available. Like
interprocess communication etc.

Need ur thought on this.

Thanks
Cheers...

Bye

Oct 12 '06 #2
The easiest way I can think of is to create a COM+ component for your VC++
application. Your winforms application should have no trouble calling it.

Steve

"batista" wrote:
Hello all,

I need suggestions and possibly solutions to the problem stated below:

I have an application written purely in .NET ( Windows Form
Application) and another application that is supposed to be written in
MFC(Visual C++) or Win32 GUI Application. The problem is to communicate
data between the two applications.

for example,

If i click a button in .NET GUI application, the data(some text) shuld
be sent to the VC++ GUI application.

Both the .NET and VC++ application will run on the same PC. One option
that seems applicable is to use sockets for data communication between
the two applications. But since both application will run on the same
PC, I thought if there were some other faster options available. Like
interprocess communication etc.

Need ur thought on this.

Thanks
Cheers...

Bye

Oct 12 '06 #3
SoxFan44, although ive never used .net remoting, but i think its only
in the clr...and can only be used for .net to .net interprocess comm.

SoxFan44 wrote:
Just a guess, but could you use Remoting? Or is that only in the CLR?

"batista" <sa*********@gm ail.comwrote in message
news:11******** **************@ c28g2000cwb.goo glegroups.com.. .
Hello all,

I need suggestions and possibly solutions to the problem stated below:

I have an application written purely in .NET ( Windows Form
Application) and another application that is supposed to be written in
MFC(Visual C++) or Win32 GUI Application. The problem is to communicate
data between the two applications.

for example,

If i click a button in .NET GUI application, the data(some text) shuld
be sent to the VC++ GUI application.

Both the .NET and VC++ application will run on the same PC. One option
that seems applicable is to use sockets for data communication between
the two applications. But since both application will run on the same
PC, I thought if there were some other faster options available. Like
interprocess communication etc.

Need ur thought on this.

Thanks
Cheers...

Bye
Oct 16 '06 #4
Steve, thanks for the suggestion. I'll give it a try.

Steve Edmans wrote:
The easiest way I can think of is to create a COM+ component for your VC++
application. Your winforms application should have no trouble calling it.

Steve

"batista" wrote:
Hello all,

I need suggestions and possibly solutions to the problem stated below:

I have an application written purely in .NET ( Windows Form
Application) and another application that is supposed to be written in
MFC(Visual C++) or Win32 GUI Application. The problem is to communicate
data between the two applications.

for example,

If i click a button in .NET GUI application, the data(some text) shuld
be sent to the VC++ GUI application.

Both the .NET and VC++ application will run on the same PC. One option
that seems applicable is to use sockets for data communication between
the two applications. But since both application will run on the same
PC, I thought if there were some other faster options available. Like
interprocess communication etc.

Need ur thought on this.

Thanks
Cheers...

Bye
Oct 16 '06 #5

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

Similar topics

2
400
by: Jeroen | last post by:
Question, We are in the process of creating a windows service in C#. Another GUI application, also written in C# has to communicate from another machine to this service. What is the best technique to use for interprocess communications in this situation? Thanks in advance, Jeroen
7
442
by: Daniel | last post by:
I search for a good way to communicate between processes. I have a main application(might be more instances) and an tool that should exchange information such as which user is logged in into the application and more. Now i'm doing it by sending API WM_COPYDATA messages with SendMessage. Our users are identified by a Guid and getting the app user by sending four WM_COPYDATA with kind a "GiveMeUserGuidPart0of4" and putting to gether the 4...
4
2165
by: Charles Packer | last post by:
I need to do the following simple interprocess communication (IPC) among these processes that are all on the same box: -- A daemon waits for "I'm here" announcements from multiple clients -- One or more clients send an "I'm here" to the daemon upon command via the client's GUI (Each client's GUI is viewed by a different human user) The daemon retransmits "X is here" to all clients when it receives any "I'm here". I read some tutorials...
3
4799
by: James Aguilar | last post by:
Oh wise readers of comp.lang.python, Lend a newbie your ears. I have read several old articles from this group about memory mapping and interprocess communication and have Googled the sh** out of the internet, but have not found sufficient to answer my questions. Suppose that I am writing a ray tracer in Python. Well, perhaps not a ray tracer. Suppose that I am writing a ray tracer that has to update sixty times a second (Ignore...
7
2053
by: Michael Butscher | last post by:
Hi, this is not really Python-specific but I need it for Python. I'm wanting a method for interprocess communication which is OS- independent (sockets would be the normal way to go), but which works if multiple users use the machine at the same time so that one user has no access to the communication of programs of another user. Normally any user could connect to an open socket on a machine
1
5256
by: batista | last post by:
Hello all, I need suggestions and possibly solutions to the problem stated below: I have an application written purely in .NET ( Windows Form Application) and another application that is supposed to be written in MFC(Visual C++) or Win32 GUI Application. The problem is to communicate data between the two applications. for example,
0
1489
by: Murali | last post by:
Hi Python Gurus, I am writing a GUI app (on linux) using pygtk which would launch some external applications and display their stdout and stderr inside the output window of my application synchronously. I am using the subprocess module's Popen to launch the external programs and to capture their stdout and stderr. The problem is that, for some external programs that I launch inside my interface, I am not able to capture and display the...
2
1788
by: Murali | last post by:
Hi Python Gurus, I am writing a GUI app (on linux) using pygtk which would launch some external applications and display their stdout and stderr inside the output window of my application synchronously. I am using the subprocess module's Popen to launch the external programs and to capture their stdout and stderr. The problem is that, for some external programs that I launch inside my interface, I am not able to capture and display the...
3
4090
by: madankarmukta | last post by:
Hi all, I am very new to Implementation of the Interprocess communication.I am trying to implement the concept in c++.I created the pipe using Createnamedpipe() function ,connecting to that pipe using ConnectNamedPipe() function and then reading the file created on the file at one end. But I am bit curious about the how the process/user at the other end of the pipe will communicate with the my terminal.How the things goes in the...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
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
9548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9374
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
9249
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
6076
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
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
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
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.