Re: esql/c programs (fwd)
Posted in 1996
In Article<31D2167D.6990@segel.com>, <mikey@segel.com> writes: > mpeter wrote: > > > > I am trying to call a function in a 4gl module (informix 4gl, versi= > on > > > > 4.00) from a esql/c program (informix esql/c version 4.00). I don=B4= > t know > > > > how to do it. > Calling 4GL from C ??? > > You can compile the 4GL code to C, but it doesn't make sense. > What you would have to do is see how 4GL preprocesses a function call > to C then have your C program mimic it. Then you would still have > to preprocess 4GL to esql/C then compile with your C code. > > All of the Informix documentation tells how to call C from 4GL not = > the reverse. > > But hey I could be wrong. Yep, you are; the documentation includes the fgl_call() function for C (among others) that allows your C code to access 4GL function calls, so that you could implement the engine in C and the interface in 4GL, for example. I briefly tinkered with this before pretty much deciding to bag 4GL for ESQL/C altogether (not yet finalized--I'm still paying maintenance for the 4GL! <grin>).