Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!mintaka!bloom-beacon!eru!hagbard!sunic!ericom!news From: etxenke@juno20.ericsson.se (Andrei Lenkei TM/JU 95712) Newsgroups: comp.databases Subject: SYBASE, APT-SQL-code and C-code application Summary: Heterogenous application Keywords: SYBASE, APT-SQL, 3-GL, C Message-ID: <1990Nov21.145856.12187@ericsson.se> Date: 21 Nov 90 14:58:56 GMT Sender: news@ericsson.se Reply-To: etxenke@juno20.ericsson.se (Andrei Lenkei TM/JU 95712) Organization: Ericsson Telecom AB, Stockholm, Sweden Lines: 31 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 Android