Connecting Tech Pros Worldwide Help | Site Map

C++ and databases question

Sonoman
Guest
 
Posts: n/a
#1: Jul 19 '05
Hi all:
I am trying to find some information/tutorials on accessing a database (MS
access preferably because I have the software, or any other that I can get
for free) using C++, I prefer that the database is located on a server
because I cannot count on the user of my program to have it on his/her
system. It could also be a local or remote text file, but I think that would
be more complicated due to keys and headers and the such. I am absolutely
new to accessing databases with C++, but I only need a few examples to get
an idea and then I can do what I need to do.

If it helps I am trying to develop an address book that can be populated,
edited, etc. from a remote location. I also know a bit of ASP but I rather
use C++ because I want to learn the language.

I also want to run the program from an executable local to my system and NOT
the web. Any help would be greatly appreciated.


Bob Smith
Guest
 
Posts: n/a
#2: Jul 19 '05

re: C++ and databases question




Sonoman wrote:
[color=blue]
> Hi all:
> I am trying to find some information/tutorials on accessing a database (MS
> access preferably because I have the software, or any other that I can get
> for free) using C++, I prefer that the database is located on a server
> because I cannot count on the user of my program to have it on his/her
> system. It could also be a local or remote text file, but I think that would
> be more complicated due to keys and headers and the such. I am absolutely
> new to accessing databases with C++, but I only need a few examples to get
> an idea and then I can do what I need to do.
>
> If it helps I am trying to develop an address book that can be populated,
> edited, etc. from a remote location. I also know a bit of ASP but I rather
> use C++ because I want to learn the language.
>
> I also want to run the program from an executable local to my system and NOT
> the web. Any help would be greatly appreciated.[/color]

very ot
....but you might be interested in mysql and mysql++( for C++ ), and SQL
check out MySQL at www.mysql.com

/B

[color=blue]
>
>[/color]

Socketd
Guest
 
Posts: n/a
#3: Jul 19 '05

re: C++ and databases question


On Mon, 20 Oct 2003 02:09:58 -0400
"Sonoman" <fcarpio@cse.fau.edu> wrote:
[color=blue]
> Hi all:
> I am trying to find some information/tutorials on accessing a database
> (MS access preferably because I have the software, or any other that I
> can get for free) using C++, I prefer that the database is located on
> a server because I cannot count on the user of my program to have it
> on his/her system. It could also be a local or remote text file, but I
> think that would be more complicated due to keys and headers and the
> such. I am absolutely new to accessing databases with C++, but I only
> need a few examples to get an idea and then I can do what I need to
> do.[/color]

www.wxwindows.org

br
socketd
Ganesh
Guest
 
Posts: n/a
#4: Jul 19 '05

re: C++ and databases question


> I am trying to find some information/tutorials on accessing a database (MS[color=blue]
> access preferably because I have the software, or any other that I can get
> for free) using C++, I prefer that the database is located on a server
> because I cannot count on the user of my program to have it on his/her
> system. It could also be a local or remote text file, but I think that would
> be more complicated due to keys and headers and the such. I am absolutely
> new to accessing databases with C++, but I only need a few examples to get
> an idea and then I can do what I need to do.[/color]

C/C++ ODBC APIs will allow C++ applications to access most of the
commonly available databases. Please consult the documentation of
Database on C/C++ client development. The development APIs and samples
for PostgreSQL can be found under

http://www.postgres.org/docs/7.3/interactive/libpq.html

-GK
[color=blue]
>
> If it helps I am trying to develop an address book that can be populated,
> edited, etc. from a remote location. I also know a bit of ASP but I rather
> use C++ because I want to learn the language.
>
> I also want to run the program from an executable local to my system and NOT
> the web. Any help would be greatly appreciated.[/color]
Thomas Matthews
Guest
 
Posts: n/a
#5: Jul 19 '05

re: C++ and databases question


Sonoman wrote:[color=blue]
> Hi all:
> I am trying to find some information/tutorials on accessing a database (MS
> access preferably because I have the software, or any other that I can get
> for free) using C++, I prefer that the database is located on a server
> because I cannot count on the user of my program to have it on his/her
> system. It could also be a local or remote text file, but I think that would
> be more complicated due to keys and headers and the such. I am absolutely
> new to accessing databases with C++, but I only need a few examples to get
> an idea and then I can do what I need to do.
>
> If it helps I am trying to develop an address book that can be populated,
> edited, etc. from a remote location. I also know a bit of ASP but I rather
> use C++ because I want to learn the language.
>
> I also want to run the program from an executable local to my system and NOT
> the web. Any help would be greatly appreciated.[/color]

Check the documentation that came with your compiler. Some compiler
packages have APIs or libraries that help access databases.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library

Sonoman
Guest
 
Posts: n/a
#6: Jul 19 '05

re: C++ and databases question


Thank you for all the responses and I apologize for being off topic.


"Sonoman" <fcarpio@cse.fau.edu> wrote in message
news:e_Kkb.22001$h47.7017@bignews4.bellsouth.net.. .[color=blue]
> Hi all:
> I am trying to find some information/tutorials on accessing a database (MS
> access preferably because I have the software, or any other that I can get
> for free) using C++, I prefer that the database is located on a server
> because I cannot count on the user of my program to have it on his/her
> system. It could also be a local or remote text file, but I think that[/color]
would[color=blue]
> be more complicated due to keys and headers and the such. I am absolutely
> new to accessing databases with C++, but I only need a few examples to get
> an idea and then I can do what I need to do.
>
> If it helps I am trying to develop an address book that can be populated,
> edited, etc. from a remote location. I also know a bit of ASP but I rather
> use C++ because I want to learn the language.
>
> I also want to run the program from an executable local to my system and[/color]
NOT[color=blue]
> the web. Any help would be greatly appreciated.
>
>[/color]


Closed Thread