RE: Euphoria as an extension language
- Posted by Phil Russell <pg_russell at lineone.net> Nov 18, 2002
- 423 views
Hi All Could you not use a message interface in Windows to pass variables? e.g. - C program invokes Eu program - Eu program sends custom message(s) to C program to get variables e.g. var = SendMessage( hCProgram, UM_GET_VAR, var_id, 0 ) - C program returns variable value or pointer to struct etc. This seems equivalent to calling functions in the parent program to me... Phil Derek Parnell wrote: > This would work well in Windows, and would get rid of all that silly > console screens popping up and > down. > > 18/11/2002 4:54:57 PM, dm31 at uow.edu.au wrote: > > > > >|1) Main program writes out the values of the variables required to a > >disk file. > >|2) Either it creates the script code at runtime or uses a pre-built > >script. > >|3) Runs a new instance of ex.exe using the script program. You could > >include the names of the input- > >|output files on the command line too. > >|4) Starts waiting for the results to be signalled. > >|5) The script reads in the stored values from the disk file. > >|6) The script does it stuff. > >|7) The script writes out the values to another disk file. > >|8) The main program (that has been patiently waiting for the new disk > >file to be written), loads > >|back in the updated variable values. > >|9) And the show goes on, etc... > > > >You could even have the main program allocate memory for the vars, > >have these addresses in the disk file, that way the script program > >could use those instead of writing another file with the results. > > > > > > > --------- > Cheers, > Derek Parnell > ICQ# 7647806 > >