Re: calling a 4GL routine from C socket server ?
Posted in 1997
Kire Prostizenovski wrote: > > How would I be able to call a 4GL program from a C program. > > We have a socket server process written in C, and would like to pass > parameters to a 4GL program which will do it's thing and return the > result. Can data be passed to the 4GL program through named pipes, or > am I on the wrong track ? > > I was thinking of passing parameters on the command line to the 4GL; > say > fglgo testprog.4go <parm1> <parm2> ... > But how would I capture the returned result in my C program ? > > Where a heap of data needs to be passed, we would pass the filename of a > named pipe where the data has been written to. 4GL does not do file I/O itself. However, you an write a "C" function, callable from 4GL, link it into your program (I4GL) or into the fglgo (R4GL), and handle I/O through calls to those functions from the 4GL. Art S. Kagel