473,569 Members | 2,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

using pipes for communication

hi

i want to communicate between simulator1 and simulator2

I use pipes, but, um, it doesn't seem to work right.

The main idea is to have a process(main) simulator1 that creates
another(child)s imulator2 using CreateProcess() .

i launch simulator 2 and establish a communication with him

when it finishes simulation it me sending a message (I finished) thus
I will send another message to him says make another simulation

reamrque: I do not want to use the communcation with the dos window
Nov 21 '05 #1
6 1738
"el7akika" <el******@yahoo .fr> schrieb:
i want to communicate between simulator1 and simulator2


Are you sure your question is related to the VB.NET programming language?

If you want to setup communication between two applications, you can use
sockets or remoting, for example, which are supported by the .NET Framework
directly.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2

"el7akika" <el******@yahoo .fr> wrote in message
news:71******** *************** ***@posting.goo gle.com...
hi

i want to communicate between simulator1 and simulator2

I use pipes, but, um, it doesn't seem to work right. Are you sure you created both ends of the pipe(s) as described
in the example in the reference? You can also look at my earlier post
http://groups.google.fi/groups?q=wes...&hl=fi&lr=&sel
m=mbmUc.22893%2 4g4.431312%40ne ws2.nokia.com&r num=3
The main idea is to have a process(main) simulator1 that creates
another(child)s imulator2 using CreateProcess() .

i launch simulator 2 and establish a communication with him

when it finishes simulation it me sending a message (I finished) thus
I will send another message to him says make another simulation
So you would WriteFile() and then ReadFile()...
reamrque: I do not want to use the communcation with the dos window

Well.. if you really have a DOS window then you must communicate with
DOS. Or did you mean Console window? :)

- Sten
Nov 21 '05 #3
In Win32 Sockets, Mailslots, NamedPipes, Shared Memory(Memory mapped
files) could be used for the IPC between two processes.

Nov 21 '05 #4
"el7akika" <el******@yahoo .fr> wrote in message
news:71******** *************** ***@posting.goo gle.com...
hi

i want to communicate between simulator1 and simulator2

I use pipes, but, um, it doesn't seem to work right.


Another programmer and I each wrote a program that forms a cooperative
system. The two programs communicate in both directions IIRC via a named
pipe and the system works just fine. But it's limited to Win2K and later
systems.

Norm

Nov 21 '05 #5


thank you very very much for your answer , I want an example
have you a code in c++ for a communication between two process ?
thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #6

"Norm Dresner" <nd***@att.ne t> wrote in message
news:5C******** ***********@bgt nsc05-news.ops.worldn et.att.net...
"el7akika" <el******@yahoo .fr> wrote in message
news:71******** *************** ***@posting.goo gle.com...
hi

i want to communicate between simulator1 and simulator2

I use pipes, but, um, it doesn't seem to work right.


Another programmer and I each wrote a program that forms a cooperative
system. The two programs communicate in both directions IIRC via a named
pipe and the system works just fine. But it's limited to Win2K and later
systems.


Why not NT4 ? Anyway, only Win2k and later are nowadays supported....

- Sten

Nov 21 '05 #7

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

Similar topics

2
1388
by: Philippe C. Martin | last post by:
HI, I currently have a "working" script that uses sockets to handle threads communications - the problem is that it gives me obvious problems in handling free ports (launching the script more than once ....). Is thread named pipes communication allowed ? Regards,
0
4514
by: wycklk | last post by:
Can anybody help ? >-----Original Message----- >I have 2 processes that need to communicate with each >other. In .NET environment using C#, what is the IPC >communication mechanism that I can use ? Eg. name >pipes, .NET remoting etc. > >Please point me to some examples using C#. >.
1
2417
by: Srini | last post by:
I am a beginner to using XML for communication between processes. I have heard about using XML for passing of information between 2 applications. We have 2 desktop applications developed in VB, running on the same desktop. They have to pass information between each other. Can any one explain how this can be achieved using XML DOM structure?...
1
1628
by: motimh | last post by:
I am trying to use named pipes to interprocess communication. My concern is the cpu wait time between them. Can someone show me the code to do this in VBNet? Is there an event that can be associated with the existence of text in the pipe that can fire and hence not use any cpu time? Any help is much appreciated.
1
2120
by: Jarrod Morrison | last post by:
Hello all Ive been trying to get a service app that i run to interact with the logged on user of the machine and so far havent been very successfull and have read that maybe named pipes is the way to go. Im hoping someone has some information and easy to understand examples on named pipes. Basically i need my service app to signal a user...
5
2412
by: Dara Durum | last post by:
Hi ! I want to create a Process Pool Object. I can hold started processes, and can communicate with them. I tryed with many ipc methods, but every of them have bug or other problem. Sockets are unavailabe (because Windows Firewall hold them). I think I will use pipe.
4
12089
by: GVN | last post by:
Hi All, Can anyone help me in simulating IPC using C#.NET Windows application? Thanks, GVN
9
2923
by: David T. Ashley | last post by:
Thanks for the helpful replies on the other thread. Essentially it was pointed out that a process with the same UID as the ones writing/reading the pipes would be able to examine the memory of the pipe writers/readers and figure out what data had flowed. Here is my application (and I'd be grateful for any other advice). I'm incorporating...
0
7701
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...
0
7615
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...
0
7924
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. ...
0
8130
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...
1
5514
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
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...
0
3653
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...
1
1223
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
940
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...

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.