So how to read it. I just have one table in database, and i wanna read fields from that table,
very simple table.
So how to read it. I just have one table in database, and i wanna read fields from that table,
very simple table.
lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu
And the table is very very large, But that doesn't have to do with anything, does it?
( it's about 6MB )
lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu
you have to use database operations techniques, such as ODBC or ADO, and you have to know SQL (structured query language). There are lots of books on all these subjects -- not for beginners. If you google around you will find some ODBC c++ classes to make it a little easier.
And SQL language is not standardized. What works on one database may or may not work on others. There is a basic set of SQL commands, but beyond that each database has its own unique set of SQL functions.
Last edited by Ancient Dragon; 12-01-2005 at 09:00 AM.
Without any information on what your resources are, I would suggest you use the MFC CDatabase/CRecordset classes und Access as an ODBC Datasource.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
I'm not gonna use MFC
lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu
ODBC is commercial!
lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu
and wtf do you think access is?Originally Posted by ElastoManiac
ODBC = OPEN database connectivity.
it's actually an open standard USED by commerical products.
Unless you really like writing a tonne of code to read the mdb file by hand (if you are daft enough to attempt this here's the MDB file format), ODBC is your friend. You can use MFC classes, ADO, DAO, ADO.net.
here go learn SQL and try to avoid making statements like that in the future.
"Better to keep silent and be thought a fool, then to open your mouth and remove all doubt"
"I saw a sign that said 'Drink Canada Dry', so I started"
-- Brendan Behan
Free Compiler: Visual C++ 2005 Express
If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?
this is getting too complicated, i'm just gonna extract my table to *.txt and read it with <fstream>
Althought it would be very nice if i'v learned how to handle this stuff.
lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu