using pipes for communication

  • Thread starter Thread starter el7akika
  • Start date Start date
E

el7akika

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
 
el7akika said:
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.
 
el7akika said:
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=westerback+sten+CreateProcess&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
 
In Win32 Sockets, Mailslots, NamedPipes, Shared Memory(Memory mapped
files) could be used for the IPC between two processes.
 
el7akika said:
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
 
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
 
Norm Dresner said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top