*.def? 
A structure of the database desired by your user?
Maybe you could try to get the database type,such as 
VFP.Oracle.or something else.
Then in the ODBC Data Source ,set the DataSource of your database!
In the Visual Studio,add a CRecordSet class to help you manage the 
databae,which could help you create fitting data member in your class,it's quite convenient!
Try ,and you will find it!