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.
Carl Wu asked whether fgl_start can use a customized runner so a C program can call a 4GL library function that calls another C function. Andrew Hamm said runners apply only to RDS or .4gi code, and that the custom runner function should be added to the C program's link, calling with pushquote and nargs conventions. Carl reported it worked. Solved.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Carl Wu — — source: Informix-list mailing list archive (1991-1998)
Is it possible to get macro fgl_start to use the customized runner to run
the 4gi?
We have a C program need to call a 4GL library function which in turn calls
another C function. When this 4GL library is linked with other 4GL programs
we can use our customized runner to run it so there's no problems. But when
it's "fgl_start"ed from a C program it will fail because without the
customized runner it can't find the C function.
Any help appreciated!
Carl Y. Wu
↪ replying to Carl Wu
Andrew Hamm — — source: Informix-list mailing list archive (1991-1998)
Carl Wu wrote in message
<3a592deb$0$7505$7f31c96c@news01.syd.optusnet.com.au>...
>Is it possible to get macro fgl_start to use the customized runner to run
>the 4gi?
>We have a C program need to call a 4GL library function which in turn calls
>another C function. When this 4GL library is linked with other 4GL programs
>we can use our customized runner to run it so there's no problems. But when
>it's "fgl_start"ed from a C program it will fail because without the
>customized runner it can't find the C function.
>
Emmm, I don't quite understand. If you are using C-compiled 4GL code and
linking it to be used by a C program, then there is no runner involved at
all. Runners are only used in RDS or .4gi execution (pcode). Are you trying
to tell me that you have linked RDS into a running C program?
If my understanding of your issue is correct, then you merely need to add
the custom runner function into the link of the C program. And of course,
call it with the proper convention - ie call pushquote() and similar
functions, then call the function with a suitable nargs as the only
parameter. Don't forget to pop the return values.
↪ replying to Andrew Hamm
Carl Wu — — source: Informix-list mailing list archive (1991-1998)
Andrew Hamm wrote in message <3a59591b$1@news.iprimus.com.au>...
>If my understanding of your issue is correct, then you merely need to add
>the custom runner function into the link of the C program. And of course,
>call it with the proper convention - ie call pushquote() and similar
>functions, then call the function with a suitable nargs as the only
>parameter. Don't forget to pop the return values.
>
>
>
It worked! Thanks a lot Andrew.
↪ replying to Carl Wu
Andrew Hamm — — source: Informix-list mailing list archive (1991-1998)
Carl Wu wrote in message
<3a5a659d$0$22901$7f31c96c@news01.syd.optusnet.com.au>...
>
>It worked! Thanks a lot Andrew.
>
It's an honour and a privilege to assist.
Cheers.
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.