Re: C++ with ESQL/C
Posted in 1995
asberry@ibm.net wrote: : In <3glku6$jvd@cssun.mathcs.emory.edu>, hzheng@ebi.com (Honglan Zheng) writes: : > But when I tried to use "esql" to compile it directly. I got tons : > of error. It seems to me it just donot like C++. Then, I tried to use just : > the preprocess, it works but I was told the method I used have limitations. : One alternative that I have used in a couple of applications is to place : functions which use embedded SQL into separate modules. I use ESQL to : compile these modules to object files, and then link these with the C++ : program (which is compiled separately). One of these applications runs 24 : hours a day synchronizing our Informix database with our PICK database. : I've not had any problems so far. I also use the aforementioned solution successfully. In our development environment, other programs (using C++) do not care to know, or need to know, about SQL, etc. I have a db library for any routines that perform database operations. Carol Stimmel