Solved

Independent database with C++ interface.

Posted on 1998-12-09
5
217 Views
Last Modified: 2006-11-17
I am looking for a way to use a database in a C++ program. Currently I am using Access with the dbDao 3.5 interface, but I do not like the fact that this only runs on Windows and if Access is installed. I am hence looking for a database which is independent from the platform, has a nice C++ interface which supports at least SQL access, preferably something object oriented such as a DAO-equivalent, and does not need anything installed other than the actual datafiles. So in the end I would distribute my application exe along with the datafiles and nothing else.

any ideas?
0
Comment
Question by:MaDdUCK
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 1

Expert Comment

by:andla
ID: 1179811
Perhaps you can get a SDK from microsoft or an ODBC API.
I don't know so much about it but it's fun to learn.
Do you have a simple codesnippet with database programming in MSVC 4.X-> you can share with me?

Your sincerly
Andla.
0
 
LVL 1

Expert Comment

by:andla
ID: 1179812
Perhaps you can get a SDK from microsoft or an ODBC API.
I don't know so much about it but it's fun to learn.
Do you have a simple codesnippet with database programming in MSVC 4.X-> you can share with me?

Your sincerly
Andla.
0
 
LVL 1

Expert Comment

by:andla
ID: 1179813
Something is wrong here. I did not leave those comments. My original comment was different. Must be a bug in EE.




Comment
From: andla Date: Tuesday, December 15 1998 - 05:43AM PST  
 
Yes, why not design the whole for your-self. It could be fun.
 
 
 
   
 


 
Comment
From: andla Date: Tuesday, December 15 1998 - 06:00AM PST  
 
>> "....does not need anything installed other than the actual datafiles"

Plus the database code, ODBC drivers etc.. Or do you mean something like a B-Tree package.
 
 
 
   
 


Here are your options, andla:

0
 
LVL 3

Expert Comment

by:NullTerminator
ID: 1179814
FWIW Mad,

try
http://www.mixsoftware.com/product.htm

I can't speak for the C++ version, but I can speak of the C version.  I have used 'Mix Software's" C database toolchest some years ago in a DOS platform.  The price is cheap,  comes with source,  a technician answered the phone when I called for help,  (Turbo C needed a boost in stack space)  and the documentation was way beyond expectation.

I don't know about SQL.  The old one didn't support it.  I just checked.  New one doesn't either.  That's left as an exercise for the reader. :-)

In those days it was ISAM database, multiple B+Tree indexes and flexible.  It used to convert everything to strings, but now manages raw data types.  Variable record sizes and sort of self compacting.  It reuses holes cause by deletions.

Check it out
0
 

Accepted Solution

by:
DOMINIC011899 earned 50 total points
ID: 1179815
Get Al Steven's book which has a title of something like "C++ Database Programming, 2nd Edition".  It has free source code in a diskette and I think it is freely distributable as long as you acknowledge that you got it from him.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question