etxenke@juno20.ericsson.se (Andrei Lenkei TM/JU 95712) (11/21/90)
Hallo!
I'm interested in adding 3-GL code (C) to a SYBASE application in a SIMPLE way.
I have consulted the manuals but they weren't very helpfull (at least I
couldn't make much sense out of them). They talk about a `Generic main routine'
but that seems to be an example of 3-GL (something they call SYB_C) with
APT-SQL calls. It seems as a very complicated way of doing what I want which
is:
Allow a simple function written in C to be called by a number of APT-SQL
procedures located in several forms of an application.
Could someome:
1) Mail me a very simple example of type:
1 form with 1 field with postprocessing attached where the said
postprocessing is an APT-SQL which calls a C routine and passes two
arguments to it of type char and int. The C routine returns a 0 (failed)
or a 1 (succeded) that APT-SQL must be able to handle.
2) Mail me an email adress at SYBASE wher I could ask this question
As I stated earlier the manual seems to turn the question of adding 3-GL
to an application into that of writing 3-GL with APT-Libarary calls.
This would have bben OK but I fear it would mean a major rewrite in my case.
Surely this can't be necessar?!
Andrei.
"WHY STOP NOW, JUST WHEN I'M HATING IT"
Marvin, the Paranoid Androidmac@sequent.UUCP (Cormac Burke) (11/22/90)
In article <1990Nov21.145856.12187@ericsson.se> etxenke@juno20.ericsson.se (Andrei Lenkei TM/JU 95712) writes: > >I'm interested in adding 3-GL code (C) to a SYBASE application in a SIMPLE way. >I have consulted the manuals but they weren't very helpfull (at least I >couldn't make much sense out of them). They talk about a `Generic main routine' >but that seems to be an example of 3-GL (something they call SYB_C) with >APT-SQL calls. It seems as a very complicated way of doing what I want which >is: > I seem to recall that in order to do what you want to do, you have to create a 3GL progam to CALL apt, and this is what allows you to link in some other 3GL routine that you call from an APT procedure. In $SYBASE/sample/aptforms there is an example of this, including an example of the generic main routine (gen_main.c). For further information I suggest calling Sybase Tech Support, they probably have additional information on precisely this problem. Cormac Burke Sequent Computer Systems