1. Passing Information Between Euphoria Programs
- Posted by ZNorQ <znorq at holhaug.com> Feb 23, 2005
- 452 views
Is there an easy way to pass information between 2 running euphoria programs? I was thinking of passing the content of a sequence (that could contain huge amounts of information) from one Eu program to another. Or atleast, the program starts another eu program - and passes this information to it, in which case I was thinking of using the function (can't remember the name of it) that catches parameters. Regards Kenneth aka ZNorQ
2. Re: Passing Information Between Euphoria Programs
- Posted by Greg Haberek <ghaberek at gmail.com> Feb 23, 2005
- 458 views
> Is there an easy way to pass information between 2 running euphoria programs? Yes there is! The process is called DDE or Dynamic Data Exchange. Thomas Parslow wrote a library called "Interprocess Communication" that uses Microsofts DDE routines. It's in the Archive. > I was thinking of passing the content of a sequence (that could contain huge > amounts of information) from one Eu program to another. You might also want to look into "Share Memory Between Processes" by Mario Steele and Jason Mirwald. It doesn't use DDE but accomplishes a similar effect. It's in the Archive. There's also a "Euphoria Data Sharing Demo" by Jordah Ferguson. That's in the Archive, too. There's a lot of stuff in the Archive. > Or atleast, the program starts another eu program - and passes this > information > to it, in which case I was thinking of using the function (can't remember > the name of it) that catches parameters. That routine is called command_line(). Here's a link: http://www.rapideuphoria.com/lib_c_d.htm#command_line ~Greg
3. Re: Passing Information Between Euphoria Programs
- Posted by Al Getz <Xaxo at aol.com> Feb 23, 2005
- 479 views
ZNorQ wrote: > > Is there an easy way to pass information between 2 running euphoria programs? > > I was thinking of passing the content of a sequence (that could contain huge > amounts of information) from one Eu program to another. > > Or atleast, the program starts another eu program - and passes this > information > to it, in which case I was thinking of using the function (can't remember > the name of it) that catches parameters. > > Regards Kenneth aka ZNorQ > Hi there, You could also use the WM_COPYDATA message to send info to another program if that program processes messages. This turns out to be the simplest of all except... If your program only needs a small amount of info at startup, you can use the command line arguments which is even simpler. Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"
4. Re: Passing Information Between Euphoria Programs
- Posted by "David Jarvis" <davidj at ultrasmart.org> Feb 23, 2005
- 466 views
- Last edited Feb 24, 2005
Dear ZNorQ A simple way to pass information between 2 Eu programs if speed is not an issue is to use textfiles. And Textfile.e in the archive with its easy to use functions: save_text_file(sequence fname,sequence text); and load_text_file(sequence fname) is just fine for that. -- David On 23 Feb 2005 at 8:09, ZNorQ wrote: > > > posted by: ZNorQ <znorq at holhaug.com> > > Is there an easy way to pass information between 2 running euphoria > programs? > > I was thinking of passing the content of a sequence (that could > contain huge amounts of information) from one Eu program to another. > > Or atleast, the program starts another eu program - and passes this > information to it, in which case I was thinking of using the function > (can't remember the name of it) that catches parameters. > > Regards Kenneth aka ZNorQ > > > >
5. Re: Passing Information Between Euphoria Programs
- Posted by jacques deschênes <desja at globetrotter.net> Feb 24, 2005
- 460 views
Hi ZNorq, Yet another way to pass information betwen 2 programs is via clipboard using private format (see CF_PRIVATEFIST,CF_PRIVATELAST constants) regards, Jacques d.
6. Re: Passing Information Between Euphoria Programs
- Posted by Michael Raley <thinkways at yahoo.com> Feb 24, 2005
- 455 views
David Jarvis wrote: > > Dear ZNorQ > > A simple way to pass information between 2 Eu programs if speed is > not an issue is to use textfiles. And Textfile.e in the archive with > its easy to use functions: > save_text_file(sequence fname,sequence text); and > load_text_file(sequence fname) > is just fine for that. > I can think of a few ; -temp files using BGET or an EDS database to save the sequence nesting -whatever Display server uses - Win Sockets, - Matt's EUCOM (tricky) - Matt's ODBC - create a small MDB table to insert messages, have the recieving app pull and delete from the top rows so you have a persistant message queue. - that shared memory lib --"ask about our layaway plan". --
7. Re: Passing Information Between Euphoria Programs
- Posted by ZNorQ <znorq at holhaug.com> Feb 24, 2005
- 456 views
Greg Haberek wrote: > > > Is there an easy way to pass information between 2 running euphoria > > programs? > > Yes there is! The process is called DDE or Dynamic Data Exchange. > Thomas Parslow wrote a library called "Interprocess Communication" > that uses Microsofts DDE routines. It's in the Archive. Yes I know about DDE, but that means I'll have to include already written code to make it function. I was just wondering if there was an easy way to pass along information between programs in native Euphoria. I'll check out the archives and look for anything that can help me out. Thanks! :D > > > I was thinking of passing the content of a sequence (that could contain huge > > amounts of information) from one Eu program to another. > > You might also want to look into "Share Memory Between Processes" by > Mario Steele and Jason Mirwald. It doesn't use DDE but accomplishes a > similar effect. It's in the Archive. > Hehe, yes I do know about the archive, but it's not always easy to know what to look for when you're a noob. :D Thanks though, I'll check it out! > There's also a "Euphoria Data Sharing Demo" by Jordah Ferguson. That's > in the Archive, too. There's a lot of stuff in the Archive. > > > Or atleast, the program starts another eu program - and passes this > > information > > to it, in which case I was thinking of using the function (can't remember > > the name of it) that catches parameters. > > That routine is called command_line(). Here's a link: > <a > href="http://www.rapideuphoria.com/lib_c_d.htm#command_line">http://www.rapideuphoria.com/lib_c_d.htm#command_line</a> > Jupp thats it! > ~Greg > > Thanks for the tips! ZNorQ
8. Re: Passing Information Between Euphoria Programs
- Posted by ZNorQ <znorq at holhaug.com> Feb 24, 2005
- 458 views
Al Getz wrote: > > ZNorQ wrote: > > > > Is there an easy way to pass information between 2 running euphoria > > programs? > > > > I was thinking of passing the content of a sequence (that could contain huge > > amounts of information) from one Eu program to another. > > > > Or atleast, the program starts another eu program - and passes this > > information > > to it, in which case I was thinking of using the function (can't remember > > the name of it) that catches parameters. > > > > Regards Kenneth aka ZNorQ > > > > Hi there, > > You could also use the WM_COPYDATA message to send info to another > program if that program processes messages. This turns out to > be the simplest of all except... > If your program only needs a small amount of info at startup, > you can use the command line arguments which is even simpler. > Well, the information could be anything of very little- to massive amounts. I'm not sure how you would use WM_COPYDATA. I'm not too familiar with Win32Lib's (I recon thats what your referring to) inner workings, but I'm working on it - and in time getting there too I hope. :P What I was hoping for was that passing information between programs in native Euphoria - where there where no need to learn a bunch of include files - like Win32Lib - NOW.. :D PS! I'm a steady user of Win32Lib, but that is limited to making forms, controls, and handlers for now. > > > Take care, > Al > > And, good luck with your Euphoria programming! Hehe, thanks! > > My bumper sticker: "I brake for LED's" >
9. Re: Passing Information Between Euphoria Programs
- Posted by ZNorQ <znorq at holhaug.com> Feb 24, 2005
- 465 views
David Jarvis wrote: > > Dear ZNorQ > > A simple way to pass information between 2 Eu programs if speed is > not an issue is to use textfiles. And Textfile.e in the archive with > its easy to use functions: > save_text_file(sequence fname,sequence text); and > load_text_file(sequence fname) > is just fine for that. > > -- > David > Yes, I've been thinking about that, but I'd rather it be transferred without having to be saved in a file first. Thanks for your thougths though. ZNorQ > > On 23 Feb 2005 at 8:09, ZNorQ wrote: > > > > > posted by: ZNorQ <znorq at holhaug.com> > > > > Is there an easy way to pass information between 2 running euphoria > > programs? > > > > I was thinking of passing the content of a sequence (that could > > contain huge amounts of information) from one Eu program to > another. > > > > Or atleast, the program starts another eu program - and passes this > > information to it, in which case I was thinking of using the > function > > (can't remember the name of it) that catches parameters. > > > > Regards Kenneth aka ZNorQ > > > >
10. Re: Passing Information Between Euphoria Programs
- Posted by ZNorQ <znorq at holhaug.com> Feb 24, 2005
- 462 views
jacques deschênes wrote: > > > Hi ZNorq, > > Yet another way to pass information betwen 2 programs is via clipboard using > private format (see CF_PRIVATEFIST,CF_PRIVATELAST constants) > Interesting thougth! Not that I like the idea of using clipboard in this way, but I do have very much need for the clipboard function, and I'm striving hard to find a solution. You have any reference where I can get more info on how to use it? (I recon that's related to Win32Lib?) PS! Reason that I don't like using clipboard for transferring data between programs is that I use clipboard ALOT at work, and I don't want programs to mess it up when I'm doing my work. I work alot with databases, xls etc. to validate data. > regards, > Jacques d. >
11. Re: Passing Information Between Euphoria Programs
- Posted by jacques deschênes <desja at globetrotter.net> Feb 25, 2005
- 450 views
Hi ZNorq, What about pipes or mailslot. It's simple to use it's like reading and writing to files (same API functions) look at watch-svr I posted lately to euphoria site. it use a mailslot. The client open the mailslot like it open a file and write to it. And mailslot can work over LAN. Mailslot are one way communication but on can use 2 mailslots to communicate both way. regards, Jacques d.