Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Database access and C++
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

muzishun
Senior Member

United States
1079 Posts

Posted - 23 June 2005 :  01:45:22  Show Profile  Visit muzishun's Homepage
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  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 23 June 2005 :  07:11:30  Show Profile  Send pdrg a Yahoo! Message
^^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
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 23 June 2005 :  09:14:09  Show Profile  Visit muzishun's Homepage
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
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 23 June 2005 :  09:52:04  Show Profile  Send pdrg a Yahoo! Message
pffft!

I like that kinda query ;-)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07