473,407 Members | 2,676 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,407 software developers and data experts.

make two applications that communicate

4
hi
i want to be able to have two applications in c# visual studio.net 2008 to be able to communicate with each other by passing parameters.
for example; Appli1.exe is a form with 4 buttons
Appli2.exe should be executed when a particular button is pressed in Appli1.exe, but it should know which button has been pressed,

therefore i want to make a call to second application, such as:

Appli2.exe(button number) if i were to put it crudely!

i have done something like this in c++ within QNX enviroment, but havent a clue of how to do it in c#...
Jan 13 '09 #1
4 4514
vekipeki
229 Expert 100+
One way would be the EventWaitHandle Class (System.Threading). EventWaitHandle class provides access to named system synchronization events, which means that by providing a name for your event, you can get a handle to the same system event in multiple processes:

Expand|Select|Wrap|Line Numbers
  1. EventWaitHandle ewh = new EventWaitHandle(false, EventResetMode.AutoReset, "SomeUniqueName");
Jan 13 '09 #2
hashc
4
so the "someuniquename" can be a .exe application?
how do i pass parameters between the two applications?
Jan 13 '09 #3
vekipeki
229 Expert 100+
For simple inter-process synchronization, you can use named EventWaitHandle, Mutex and Semaphore classes. You cannot use them to send information, but you can have several events with different names. Name of the event can be anything you like, but you should consider making it unique to avoid collisions with other programs (e.g. "YourApp.SomeEvent", "YourApp.SomeOtherEvent" etc.)

If you want to exchange data between applications, Remoting is the way to go. Google it for some examples (check this thread also: http://bytes.com/groups/net-c/253478...-communication).
Jan 13 '09 #4
hashc
4
thanks vekipeki, i will give it a try and see how it works..
Jan 13 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Tom Q | last post by:
A user has multiple applications running on his/her PC and I want to create a broker component or service that is shared among the multiple apps. Each time an application changes a record it...
2
by: aherzallah | last post by:
Hi every one, I am trying to create a .NET application that will be called by other smaller .NET applications, can anyone advice me what is the best method/approch to communicate between...
2
by: Anand Ganesh | last post by:
Hi All, How will I make a VB6 application communicate with my VC#.NET application? I want the information to be passed back and forth between these two applications? Any suggestions please....
3
by: W1ld0ne [MCSD] | last post by:
I am working on a site that utilises multiple applications (on IIS) written in either VB.Net and or C#.Net. All these applications run under the same domain, yet the session variables are not...
0
by: Nawanat | last post by:
Dear All, I’m developing software using Microsoft Visual C++ 6.0 and having a problem with Remote Procedure Call (RPC). Since RPC is used as a tool to communicate between applications over...
11
by: kd | last post by:
Hi All, Can anybody suggest as to what is the best way communicate between 2 applications residing on the same machine? Thanks. kd
3
by: SQACSharp | last post by:
Hi, I need to transfer text (or maybe binary) data from one .net application to another .net application. What is the best way to do this since it's on the same computer and both application...
8
by: michelqa | last post by:
Hi, I need to communicate between many C# applications. is tcp socket is the best way to do this? Only the main application that send the initial request can be a remote application in a...
9
by: Johnny E. Jensen | last post by:
Hello NG I have two applications. App1: Database application. Inserts/updates data to database. App2: Notifier: The notifier checks if a record has been created or modified, by loading the...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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
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...
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.