Solved

DataBase adn Visual C++

Posted on 1998-08-27
5
196 Views
Last Modified: 2010-04-01
Can I build a database in using Visual C++ without using other language such as eg. Access, Oracle, SQL, etc.
If yes, how can I do this?

0
Comment
Question by:cplau
  • 2
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
Bonev earned 100 total points
ID: 1171464
Yes, you can.
Using the CDaoDatabase class in Microsoft Visual C++ you can create a Microsoft Jet database (like these created with Microsoft Access). To use this database you may need to use all classes with names starting with CDao, like CDaoRecordset, CDaoQueryDef, e.t.c.
* You will need to install DAO SDK that could be found on MSVC++ 5.0 CD-ROM.

0
 
LVL 2

Expert Comment

by:highstar1
ID: 1171465
Yes you Can :)
What kind of database do you want?  a .dbf or your own unique type of database..
Database programming is fairly easy if you know what you want.
0
 
LVL 7

Expert Comment

by:psdavis
ID: 1171466
* You will need to install DAO SDK that could be found on MSVC++ 5.0 CD-ROM

EEkk!! Don't install the DAO SDK.  It'll only confuse you.  That is an additional SDK that is only for migrating from Visual Basic.  The CDaoRecordset is built in directly to MS Visual C since 4 something.

Phillip
0
 
LVL 1

Expert Comment

by:Bonev
ID: 1171467
To psdavis:
Correct me if I am wrong, but I don't tnink you will be able to distribute your application without DAO (you will need to install it to your client's computers).
0
 
LVL 7

Expert Comment

by:psdavis
ID: 1171468
There's two different entities.  There's DAO with it's distributable files and theres the DAO SDK.  The DAO SDK contains different functions for CDaoRecordset.  Take a look in the DAO SDK documentation.  The functions have a completely different name.  It's something like dbDaoRecordset instead.  You don't need it.

Phillip
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

820 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