how to useing ADO link Paradox DataBase
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
this is my code for useing ADO link Paradox DataBase. but it throw wrong so maybe you can help me. i will greatly appreciated BOOL CTM21App::InitInstance() { CString connectsource; _ConnectionPtr pCon; AfxOleInit(); AfxEnableControlContainer(); pCon.CreateInstance(__uuidof(Connection)); try { connectsource.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=%d\\work\TM21Vol4\gentan500\Database;Extended Properties=Paradox 4.81ersist Security Info=False"); pCon->Open((_bstr_t)connectsource,"","",adModeUnknown); } catch(_com_error e) { AfxMessageBox("open .db wrong"); return FALSE; } } nothing