Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Brian Hampson asked whether a 4GL function can be called from a C main. Paul Watson said it was straightforward and in the manual. Jonathan Leffler said it works in Classic 4GL but not Dynamic 4GL, and pointed to the fglapi.h header and manual. Brian figured it out, noting the push and pop of values was the tricky part.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Brian Hampson — — source: Informix-list mailing list archive (1991-1998)
Is there any way to call a function written in 4gl from a C main?
B.
--
Please send administrative requests to admin@ASL.CA
Brian P. Hampson ASL Analytical Service Laboratories Ltd
System Administrator, Vancouver, BC (604)253-4188
----------------- http://www.ASL.CA/ ----------------------------
I'm not speaking for the company <- They made me say that.
↪ replying to Brian Hampson
Paul Watson — — source: Informix-list mailing list archive (1991-1998)
Dead straightforward check out the manual, there's a few very good
examples
Brian Hampson wrote:
>
> Is there any way to call a function written in 4gl from a C main?
>
> B.
> --
> Please send administrative requests to admin@ASL.CA
>
> Brian P. Hampson ASL Analytical Service Laboratories Ltd
> System Administrator, Vancouver, BC (604)253-4188
> ----------------- http://www.ASL.CA/ ----------------------------
>
> I'm not speaking for the company ?- They made me say that.
--
Paul Watson #
WF Software Ltd # You are only young once
Tel: +44 1436 674729 # but you can be immature
Fax: +44 1436 678693 # for ever
www.wfsoftware.com #
↪ replying to Brian Hampson
Jonathan Leffler — — source: Informix-list mailing list archive (1991-1998)
Brian Hampson wrote:
> Is there any way to call a function written in 4gl from a C main?
Yes in Classic 4GL, not in Dynamic 4GL.
The fglapi.h header and the manual tell you how.
--
Yours,
Jonathan Leffler (Jonathan.Leffler@Informix.com) #include
Guardian of DBD::Informix v0.95 -- http://www.perl.com/CPAN
"Windows is NOT a virus: a virus is small and efficient."
↪ replying to Jonathan Leffler
Brian Hampson — — source: Informix-list mailing list archive (1991-1998)
Jonathan Leffler (jleffler@informix.com) wrote:
: Brian Hampson wrote:
:
: > Is there any way to call a function written in 4gl from a C main?
:
: Yes in Classic 4GL, not in Dynamic 4GL.
: The fglapi.h header and the manual tell you how.
Thanks. I've figured it out now. Not too hard really, just a little
tricky remembering to pop and push :)
B.
--
Please send administrative requests to admin@ASL.CA
Brian P. Hampson ASL Analytical Service Laboratories Ltd
System Administrator, Vancouver, BC (604)253-4188
----------------- http://www.ASL.CA/ ----------------------------
I'm not speaking for the company <- They made me say that.
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.