dialog based problem
-
hi i prepared one project in dialog based application but i need database suppot for this appl;ication how to solve it?
*****THANKS N ADVANCE**** Mathen.K (I WILL TRY MY LEVEL BEST )
First of all you need to go to "control panel\Administrative Tools\Data Sources (ODBC)" and prepare a DSN (Data Source Name). You should define a path to your database file (e.g MyDatabase.mdb) there. After that you must add a class to your project, base on ODBC, and define that DSN as database source. finally costruct an object from new class and enjoy! Note that you can change the path of your database file in "GetDefault...()" function within your new database class (Sorry! I couldn't remember the full name of that function :laugh: )
-
hi i prepared one project in dialog based application but i need database suppot for this appl;ication how to solve it?
*****THANKS N ADVANCE**** Mathen.K (I WILL TRY MY LEVEL BEST )
You can always do this even after a project has been created by using ClassWizard (Ctrl+W) to derive a class from
CRecordset
. A DSN (that layer between your code and the database) is nice but it is not necessary."Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne