But I am confused by some examples:when I define a variable of a class like CDaoDatabase or CDaoRecordset ,could I use it to call it's member function without creating an instance of the class?
such as: CDaoDatabse db;
db.open(...);
CDaoRecordset rs;
rs.open(...);
(why not CDaoRecordset* prs;prs=new CDaoRecordset())