473,320 Members | 1,820 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,320 software developers and data experts.

How to communicate two projects run parallel in a solution?

Hi everyone,
I'm writing a real-time application. There are 2 projects in my solution, they run parallel. I need a project access to a field (static) in the rest when they running. How should i do?
Best regards.
Aug 13 '10 #1
3 1982
Christian Binder
218 Expert 100+
With running parallel, you mean that there are two different processes running, e.g. you're starting both .exe-files independently?
If you're doing so, you have to use mechanismns of Inter-Process-Communication.
Have a look here or google for e.g. c# inter process communiation.

If you don't have two exes running, you could take usage of a static variable in one of your projects. Take any (public) class of project 1, declare a public static variable in it. Create a reference from project 2 to proj 1 and access the static variable via it's namespace, class and name.
Aug 13 '10 #2
biennl
1
Hi Christian,
Thanks for your answer. I'm also learning C# Inter-Process-Communication and i see it's all what i need.
Aug 24 '10 #3
Christian Binder
218 Expert 100+
Fine, I wish you the best with you learning!
Finally, I'd ask you to mark this thread as answered, if it solved your problem.
Aug 24 '10 #4

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

Similar topics

1
by: tony | last post by:
hi. i have 6 project in the solution. now i know it sound simple,but how can i set the vs.net so only when the code is modified the project will build. in the configuration manager, i...
4
by: Stephen Ritchie | last post by:
At the moment we have in Solution Explorer 12 projects and using the configuration manager we ahve all dependancies and build order set correctly. The problem is that when we do >Debug>Start (F5)...
4
by: Brian | last post by:
Hello - Ive got a single "Solution" with two projects. While working with Project2, when I hit F5 to run and debug, the main form from Project1 loads. What is up with this? I thought that...
2
by: Oenone | last post by:
I wish to create a macro (that runs within the BuildEvents_OnBuildDone environment event IN VS2005) that loops through each of the projects in the current solution and retrieves some details about...
1
by: Divyesh | last post by:
Hello, I need some help to get out of cumbersome process. For example, I've one solution with 2 EXE & a DLL project. DLL is referred by both exe projects hence I've added DLL as reference to...
2
by: José Joye | last post by:
Hello, When openning a solution, all projects are expended in the Solution Explorer, is there a magic key to "reduce" all the project? Thanks, José
2
by: nevermind | last post by:
Guys, i want to do project in which i will be able to control parallel port pins with a web interface.Does anyonehave any ideas to start with. Thanks
1
by: =?Utf-8?B?VGhpbmtSUzIzMg==?= | last post by:
We develop professional development libraries. I created a Visual Studio 2005 solution that includes several solution folder with projects. e.g) Solution SolutionFolder1 ProjectA ProjectB...
0
by: Shimon Sim | last post by:
Hi I have a solution that involves a lot of integration with different parties. On such party requires that it assemblies would stay in one location Program Files\... and they are not installed in...
1
by: Kjell Engberg | last post by:
Hi I´m a newbie to VB2005 and would appriciate some hints on following problem. I´ve created a MDI solution where I want to load MDI Childs from a menu in MDI Parent. It works fine if I add a form...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.