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. You can call a 4GL FUNCTION from a C program. The process is well documented in the manuals. You have to #include a couple of header files and call some 4GL initiation routines before and some shutdown routines afterwards. Then you can pass function parameters back and forth using the "push" and "pop" routines described in the manual as well. Since there are no file i/o-routines in 4GL, the method via an intermediate file is no good. If you have the source for your 4GL-program, just convert the "MAIN" routine to a function and use the C calling interface. HTH, Richard -- +--------------------------+------------------------------------------+ | Dr. Richard Spitz | INTERNET: spitz@ana.med.uni-muenchen.de | | EDV-Gruppe Anaesthesie | Tel : +49-89-7095-3413 | | Klinikum Grosshadern | FAX : +49-89-7095-8886 | | 81366 Munich, Germany | GSM : +49-172-8933578 | +--------------------------+------------------------------------------+