Solved

Independent database with C++ interface.

Posted on 1998-12-09
5
211 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

932 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now