From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,868a8d631b154256 X-Google-Attributes: gid103376,public From: jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk) Subject: Re: ada calling into C library? Date: 1998/10/31 Message-ID: #1/1 X-Deja-AN: 407063368 References: <3639E39E.EFA4B968@aston.ac.uk> Organization: * JerryWare *, Leiden, Holland Newsgroups: comp.lang.ada Date: 1998-10-31T00:00:00+00:00 List-Id: Danny (clarked@aston.ac.uk) wrote: : I've a project on a unix system V platform using gnat compilers... : What I would like to do is have a C / C++ library communicating with a : database and ada programs making calls into that library to get data. Yes, that can be done by writing an Ada binding to the C/C++ library. : Ideally I would like the library to return objects ala COM but this may : be unrealistic so I would be happy enough to return structures / : records. That depents on the model. I do not know if there is COM support on Sys V (I doubt it), but Corba should be doable. : Does anyone know how possible this is and if is likely to be : worth the effort. Yes, its worth the effort, especially if you reuse the bindings for other projects. : Its not an option to use C throughout the project but : Ada could be used to communicate with the database. The reason for : using C is so I can use the Rogue Wave DBTools classes to deal with the : database. In that case (presuming there is no Ada binding to DBTools), why write intermediate C or C++ code. Why not interface to the DBTools directly ? Jerry. -- -- Jerry van Dijk | email: jdijk@acm.org -- Leiden, Holland | member Team-Ada -- Ada & Win32: http://stad.dsl.nl/~jvandyk