From: Roberto Joao Lopes Garcia <roberto@mha.com.br>
To: Rich Shepard <rshepard@appl-ecosys.com>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Can PostgreSQL be used in a C++ application
Date: Mon, 13 Sep 1999 10:15:59 -0300
Message-ID: <3.0.5.32.19990913101559.00804100@pop.hipernet.com.br> (raw)
In-Reply-To: <Pine.LNX.4.10.9909090657050.9377-100000@salmo.appl-ecosys. com>
References: <19990909132309.57266.qmail@hotmail.com>
At 07:01 09/09/99 -0700, you wrote:
I do not have experience in C++ but I feel very confortble with C. I´m
using Libpq to make WWW applications but now I have to write an application
for Windows!!
Most user interfaces are in C++ (MFC and Qt), so can I mix C++ (MFC or Qt)
with C functions (maybe Libpq and my own functions)??? Could you give-me
samples???
Thank you???
>Wenhao,
>
> The short answer to your question is "yes and no." The slighly longer
>answer is learning how a database application goes together.
>
> There are three major components to a database application. From the top
>down they are:
>
> 1.) The user interface (UI). In your case, you are using gtk+.
>
> 2.) The middleware. This is the glue which connects the UI to the database
>engine. In your case it's C++.
>
> 3.) The database engine. This is where postgres resides. It is the back
>end of your application and works with almost any front end and middleware.
>
> Plan your application so that each component is handled separately. You
>can develop the postgres back end and the UI front end completely
>independently of each other. Your middleware (C++ for you, C for me) is the
>glue which connects the two.
>
>HTH,
>
>Rich
>
>Dr. Richard B. Shepard, President
>
> Applied Ecosystem Services, Inc. (TM)
> Making environmentally-responsible mining happen. (SM)
> --------------------------------
> 2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
> + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard@appl-ecosys.com
>
>
>************
>
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-interfaces@postgresql.org
Cc: roberto@mha.com.br, rshepard@appl-ecosys.com
Subject: Re: [INTERFACES] Can PostgreSQL be used in a C++ application
In-Reply-To: <3.0.5.32.19990913101559.00804100@pop.hipernet.com.br>
References: <19990909132309.57266.qmail@hotmail.com> <3.0.5.32.19990913101559.00804100@pop.hipernet.com.br>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox