473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

how to communicate between two process in .net ?


Hi,

My project got a problem that is relevant to the communication between
processes.However, I don't know what technique is used in my case.

I'm implementing two applications called AppMain and AppEventHandler.
The AppMain is responsible for creating a new document Word file by
using a third-party framework, say FrwDocFile. And the job of
AppEventHandler is to generate filename for document.

The logic flow would be like this: when AppMain sends a creating file
request to the FrwDocFile (by calling a method), the FrwDocFile will do
necessary steps and then launch AppEventHandler as asynchronous
background thread to generate file name for document. After that the
execution control returns AppMain but the AppMain need to know the
document file name before it does any further processing task. However,
the document file name is generated by AppEventHandler in another
thread. So this requirement makes the AppMain have to wait for
AppEventHandler completed.

From that point, the AppMain and AppEventHandler will be run in two
different processes and they need to "talk" together. Specially, the
AppEventHandler need to send a message (file name) to AppMain while the
AppMain is waiting that message from AppEventHandler. And it comes to
this topic :).

The google gave me this url
(http://msdn.microsoft.com/en-us/libr...74(VS.85).aspx) but these
techniques is used in native win32 platform but I prefer using .net. I
also thought about WCF (actually, my project is developed in
service-oriented programming with WCF) but the AppEventHandler can't use
configuration file. That's the requirement for AppEventHandler :(.

I'm thinking about something like pipe because this technique can be
used for communicating between two processes in the same machine (my
case). But the pipe isn't available in .net or I don't know how to use
it :).

Can you suggest me any technique to resolve this ?

Thank you
--
Thanks,
Duy Lam
Nov 7 '08 #1
1 1588
I found out the solution after taking a look on System.IO.Pipe
namespace. It's ok for my case
Duy Lam wrote:
>
Hi,

My project got a problem that is relevant to the communication between
processes.However, I don't know what technique is used in my case.

I'm implementing two applications called AppMain and AppEventHandler.
The AppMain is responsible for creating a new document Word file by
using a third-party framework, say FrwDocFile. And the job of
AppEventHandler is to generate filename for document.

The logic flow would be like this: when AppMain sends a creating file
request to the FrwDocFile (by calling a method), the FrwDocFile will do
necessary steps and then launch AppEventHandler as asynchronous
background thread to generate file name for document. After that the
execution control returns AppMain but the AppMain need to know the
document file name before it does any further processing task. However,
the document file name is generated by AppEventHandler in another
thread. So this requirement makes the AppMain have to wait for
AppEventHandler completed.

From that point, the AppMain and AppEventHandler will be run in two
different processes and they need to "talk" together. Specially, the
AppEventHandler need to send a message (file name) to AppMain while the
AppMain is waiting that message from AppEventHandler. And it comes to
this topic :).

The google gave me this url
(http://msdn.microsoft.com/en-us/libr...74(VS.85).aspx) but these
techniques is used in native win32 platform but I prefer using .net. I
also thought about WCF (actually, my project is developed in
service-oriented programming with WCF) but the AppEventHandler can't use
configuration file. That's the requirement for AppEventHandler :(.

I'm thinking about something like pipe because this technique can be
used for communicating between two processes in the same machine (my
case). But the pipe isn't available in .net or I don't know how to use
it :).

Can you suggest me any technique to resolve this ?

Thank you

--
Thanks,
Duy Lam
Nov 8 '08 #2

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

Similar topics

3
by: Jay Patel | last post by:
Hello, I need to write visual basic.net code to interface with a Mettler Toledo Shipping Scale that interfaces with a PC via USB or a serial port. I have seen example code on how to communicate...
0
by: Paul Moore | last post by:
I've just hit an annoying corner case in the subprocess module. I'm trying to run a process, pass it some input and capture output and error data: cmd = p = Popen(cmd, stdin=PIPE, stout=PIPE,...
9
by: tsung-yu | last post by:
Hello any expert, I has a vb.net program. For user requirement, I need to run and communicate an old DOS execution file. But, how to run and communicate a DOS program in a VB.NET program?...
0
by: rdabane | last post by:
I'm trying to perform following type of operation from inside a python script. 1. Open an application shell (basically a tcl ) 2. Run some commands on that shell and get outputs from each command...
8
by: rdabane | last post by:
I'm trying to perform following type of operation from inside a python script. 1. Open an application shell (basically a tcl ) 2. Run some commands on that shell and get outputs from each command...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.