We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
EXE to EXE (Read 363 times)
EXE to EXE
May 21st, 2008, 11:42am
 
A processing program can be converted into an EXE file.
I need to send some data during runtime, from a C++ EXE to the Processing program (while it's running).

The Processing EXE should be able to accept this data and display the corresponding graphics.

Is this possible with processing?
Re: EXE to EXE
Reply #1 - May 21st, 2008, 12:07pm
 
how much data are you talking about? You can definitely do it using OSC (http://www.sojamo.de/libraries/oscP5/), very easy to use on the processing side, not sure what it involves on the C++ side. One advantage of this is the C++ EXE and the processing EXE can be on different computers connected via ethernet or Wifi (though its not nessecary, can be on the same computer). You can probably do it using pipes and stuff as well, but I've not done that myself...
Re: EXE to EXE
Reply #2 - May 21st, 2008, 2:36pm
 
As said above. I see also a couple of UDP libraries and one for RPC.
A simpler solution could be to write in a file on the C++ side and read it in Processing.
Actually, we don't have much details. Should both be on the same computer? Is the C++ program monolithic or can it be modified for this purpose? If not, does it spits out date to standard output, or can it write to a file or does it outputs to a window?
Re: EXE to EXE
Reply #3 - May 22nd, 2008, 10:42am
 
Hey thanks so much, PhiLho & memo!

C++ can send commands to the command line...by commands I mean ordinary data like 23,35,32,1,44,646,...etc
Processing should be able to pick up this data.

I'll have to try out the pipe method too...seems to be a faster way of communication.
Thanks! Smiley
Page Index Toggle Pages: 1