473,508 Members | 2,337 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)simulator2 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 1729
"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.google.c om...
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%24g4.431312%40news2.nokia.com&rnum=3
The main idea is to have a process(main) simulator1 that creates
another(child)simulator2 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.google.c om...
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.net> wrote in message
news:5C*******************@bgtnsc05-news.ops.worldnet.att.net...
"el7akika" <el******@yahoo.fr> wrote in message
news:71**************************@posting.google.c om...
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
1386
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...
0
4510
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...
1
2410
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,...
1
1623
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...
1
2113
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...
5
2405
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...
4
12085
by: GVN | last post by:
Hi All, Can anyone help me in simulating IPC using C#.NET Windows application? Thanks, GVN
9
2922
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...
0
7225
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,...
0
7123
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
7382
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
7495
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
5627
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
4707
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...
0
3193
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...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
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...

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.