Re: SQL+C++, is it possible ?

From: Subtle Software <subtle_at_world.std.com>
Date: 1996/01/04
Message-ID: <DKnC0H.G9p_at_world.std.com>#1/1


In article <4bf7ln$8tq_at_shelly.euronet.co.il>, Natan Pekerman <natan_at_euronet.co.il> wrote:
>In article <4anpjk$d6q_at_aldebaran.sct.fr>, georgeb_at_worldnet.net says...
>>
>>Hi dear readers,
>>
>>I'd like some advice concerning the following issue:
>>
>>Starting from an Object Oriented Model (i.e. an OMT one)
>>I'd like to implement the class (i.e. EMP) using C++ and
>>code the methods using SQL statements embedded in C++.
>>
>>example (do not consider syntax mistakes):
>>
>>class EMP {
>> int empid;
>> char name [20];
>> char address[35];
>>public
>> void print_emp (int);
>>}
>>
>>/* how to implement this method?? */
>>void EMP::print (int id){
>> char empname[20];
>>
>> select name into empname
>> from EMP
>> where empid=id
>>
>>}
>>
>>This example try to expose my problem, does anyone know how to
>>code SQL and C++ together ?
>>
>>Is there any Pro*C++ ?

You should also check out the C++ database products from Subtle Software. Subtle offers a database class library which simplifies C++ access to relational databases such as Oracle as well as database tools that simplify mapping C++ objects to and from relational databases. And unlike MFC's database classes, Subtle's products work with non-MFC platforms such as UNIX.

Check out Subtle Software's home page at:

  http://world.std.com/~subtle/info.html

for more information on Subtle products, or send me email at:

  tpk_at_subtle.com

  • Ted Kyriakakis
-- 
-------------------------------------------------------
Subtle Software, Inc.        Phone: (617) 558-4100
7 Wells Ave                  Fax:   (617) 558-4103
Newton, MA  02159	     email: info_at_subtle.com
Received on Thu Jan 04 1996 - 00:00:00 CET

Original text of this message