Author |
Topic |
|
muzishun
Senior Member
United States
1079 Posts |
Posted - 23 June 2005 : 01:45:22
|
My roommate and I are beginning work on a small desktop app, and I'm looking into the data storage side. I'm considering using MS Access, as I'm familiar with it, and I know it's pretty easy to set up and use. However, I am not terribly familiar with C++ and I'm wondering if there is a way to connect an Access db with it. I've only ever used databases in vb, so I wouldn't know where to start looking.
Any suggestions? Would a SQL database work better or quicker for C++? Size won't really be an issue, as this will be a pretty small program. It's just a matter of the ease of connecting the database.
Thanks. |
Bill Parrott Senior Web Programmer, University of Kansas Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com) Personal Website (www.chimericdream.com) |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 23 June 2005 : 02:41:53
|
From C++ or whatever language you use in a MS environment, you connect to a database using ADO. It's not the language that matters in terms of database performance. For a small app, Access will be fast enough, maybe even faster than SQL Server. The connection to the database, being done in ADO, has exactly the same degree of difficulty, whether the database is Access, MySQL, or SQL Server. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
pdrg
Support Moderator
United Kingdom
2897 Posts |
Posted - 23 June 2005 : 07:11:30
|
^^this
but if you can work in C# and VS.net you may find it even easier, although you'll learn ADO.NET as opposed to ADO to do it. ADO.NET is the way things are moving, and it is very different from ADO, so if you have a straight choice, I'd give that a try.
hth |
|
|
muzishun
Senior Member
United States
1079 Posts |
Posted - 23 June 2005 : 09:14:09
|
Unfortunately, CS and VS.net are probably not going to be options for this project. Maybe in the future, but for this we'll be using plain C++.
ruirib, do you know where I can find some examples of using ADO with C++? Basically everything I'm finding is talking about ADO and VB. There is a little on the microsoft website, but they are trying to push VS.net and C# more than standard C++.
EDIT: Well, color me embarrased. I hadn't been searching for "ADO and C++". Tried that search and found a bunch of different links. |
Bill Parrott Senior Web Programmer, University of Kansas Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com) Personal Website (www.chimericdream.com) |
Edited by - muzishun on 23 June 2005 09:24:37 |
|
|
pdrg
Support Moderator
United Kingdom
2897 Posts |
Posted - 23 June 2005 : 09:52:04
|
pffft!
I like that kinda query ;-) |
|
|
|
Topic |
|
|
|