// TODO: Add your control notification handler code here CDatabase cd; if(cd.OpenEx ("DSN=SampleData",0 )) MessageBox("connected"); if(cd.BeginTrans ()) MessageBox("BeginTrans"); CRecordset rd(&cd); if(rd.Open (CRecordset::dynaset, _T("Select * from Sample"))) MessageBox ("recordset opened"); CString str; rd.GetFieldValue("Name",str); // Data retrived from the database..... MessageBox(str); rd.Close (); cd.Close ();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)