Solved

DataBase adn Visual C++

Posted on 1998-08-27
5
194 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
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…
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 learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

757 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

19 Experts available now in Live!

Get 1:1 Help Now