Click here to Skip to main content
15,908,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Merging of files Pin
Chandrasekharan P13-Apr-08 19:34
Chandrasekharan P13-Apr-08 19:34 
GeneralRe: Merging of files Pin
chandu00410-Apr-08 0:31
chandu00410-Apr-08 0:31 
QuestionHow to connect the Microsoft Access database in the VC++ program? Pin
savitri9-Apr-08 23:44
savitri9-Apr-08 23:44 
GeneralRe: How to connect the Microsoft Access database in the VC++ program? Pin
sujeet_kulk9-Apr-08 23:49
sujeet_kulk9-Apr-08 23:49 
GeneralRe: How to connect the Microsoft Access database in the VC++ program? Pin
dhananjay giri9-Apr-08 23:57
dhananjay giri9-Apr-08 23:57 
GeneralRe: How to connect the Microsoft Access database in the VC++ program? Pin
dhananjay giri10-Apr-08 0:17
dhananjay giri10-Apr-08 0:17 
GeneralRe: How to connect the Microsoft Access database in the VC++ program? Pin
David Crow10-Apr-08 3:53
David Crow10-Apr-08 3:53 
GeneralRe: How to connect the Microsoft Access database in the VC++ program? Pin
Antonio292910-Apr-08 6:19
Antonio292910-Apr-08 6:19 
here is an example for open and read a database *.mdb. Hope is helpful...


CString File = "database.mdb";

COleVariant var;

CDaoDatabase *db = null;
CDaoTableDef *TabDef = null;
CDaoRecordset *rec = null;

try
{
db = new CDaoDatabase(NULL);
db->Open(File, FALSE, FALSE, _T(""));

TabDef = new CDaoTableDef(db);
TabDef->Open("TABELLA1");

rec = new CDaoRecordset(db);
rec->Open(TabDef, dbOpenTable, 0);


rec->MoveFirst();

while( !rec->IsEOF() )
{
rec->GetFieldValue("CAMPO1", var);

rec->MoveNext();
}

rec ->Close();
TabDef->Close();
db ->Close();

}
catch( CDaoException* e )
{
GestErroriDAO(e, db, TabDef, rec);
e->Delete();
}

delete rec;
delete TabDef;
delete db;
GeneralRe: How to connect the Microsoft Access database in the VC++ program? Pin
Hamid_RT11-Apr-08 7:11
Hamid_RT11-Apr-08 7:11 
GeneralAbout modeless dialog box plz help Pin
girishchi@gmail.com9-Apr-08 23:43
girishchi@gmail.com9-Apr-08 23:43 
GeneralRe: About modeless dialog box plz help Pin
Iain Clarke, Warrior Programmer9-Apr-08 23:51
Iain Clarke, Warrior Programmer9-Apr-08 23:51 
GeneralRe: About modeless dialog box plz help Pin
girishchi@gmail.com10-Apr-08 0:04
girishchi@gmail.com10-Apr-08 0:04 
GeneralRe: About modeless dialog box plz help Pin
Nitheesh George10-Apr-08 1:11
Nitheesh George10-Apr-08 1:11 
GeneralRe: About modeless dialog box plz help Pin
girishchi@gmail.com10-Apr-08 1:34
girishchi@gmail.com10-Apr-08 1:34 
GeneralRe: About modeless dialog box plz help Pin
David Crow10-Apr-08 4:01
David Crow10-Apr-08 4:01 
GeneralRe: About modeless dialog box plz help Pin
girishchi@gmail.com10-Apr-08 4:55
girishchi@gmail.com10-Apr-08 4:55 
Questioninserting data into excel sheet in vc++ and ODBC without MFC and COM Component Pin
dhananjay giri9-Apr-08 23:37
dhananjay giri9-Apr-08 23:37 
GeneralRe: inserting data into excel sheet in vc++ and ODBC without MFC and COM Component Pin
chandu0049-Apr-08 23:57
chandu0049-Apr-08 23:57 
GeneralRe: inserting data into excel sheet in vc++ and ODBC without MFC and COM Component Pin
Cedric Moonen10-Apr-08 0:37
Cedric Moonen10-Apr-08 0:37 
GeneralRe: inserting data into excel sheet in vc++ and ODBC without MFC and COM Component Pin
dhananjay giri10-Apr-08 1:10
dhananjay giri10-Apr-08 1:10 
GeneralRe: inserting data into excel sheet in vc++ and ODBC without MFC and COM Component Pin
Christian Graus10-Apr-08 0:59
protectorChristian Graus10-Apr-08 0:59 
GeneralRe: inserting data into excel sheet in vc++ and ODBC without MFC and COM Component Pin
Michael Martin10-Apr-08 1:46
professionalMichael Martin10-Apr-08 1:46 
QuestionRe: inserting data into excel sheet in vc++ and ODBC without MFC and COM Component Pin
CPallini10-Apr-08 1:53
mveCPallini10-Apr-08 1:53 
GeneralRe: inserting data into excel sheet in vc++ and ODBC without MFC and COM Component Pin
dhananjay giri10-Apr-08 2:10
dhananjay giri10-Apr-08 2:10 
QuestionRe: inserting data into excel sheet in vc++ and ODBC without MFC and COM Component Pin
CPallini10-Apr-08 2:27
mveCPallini10-Apr-08 2:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.