Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sharing rights Pin
David Crow12-Aug-03 2:33
David Crow12-Aug-03 2:33 
GeneralProject Templates - VC6 Pin
peterchen10-Aug-03 22:40
peterchen10-Aug-03 22:40 
GeneralRe: Project Templates - VC6 Pin
Andrew Walker10-Aug-03 23:39
Andrew Walker10-Aug-03 23:39 
GeneralTrouble in ATL Pin
novachen10-Aug-03 22:40
novachen10-Aug-03 22:40 
GeneralRe: Trouble in ATL Pin
Mike Dimmick11-Aug-03 2:53
Mike Dimmick11-Aug-03 2:53 
GeneralUrgent help needed! Pin
vcseeker10-Aug-03 22:32
vcseeker10-Aug-03 22:32 
GeneralRe: Urgent help needed! Pin
wb10-Aug-03 23:08
wb10-Aug-03 23:08 
GeneralRe: Urgent help needed! Pin
vcseeker11-Aug-03 2:27
vcseeker11-Aug-03 2:27 
Hi,
thanks for reply.
I am new to databases,so i am not able to implement your suggestion into code.
I am sending my present code .It will be of great help,if you show me direction from here.
CString sDriver;
sDriver = _T("MICROSOFT ACCESS DRIVER (*.mdb)");
CString sDsn;
sDsn.Format(_T("ODBC;DRIVER={%s};DSN='';DBQ=%s"),sDriver,sInstallDir + _T("\\v010\\Program\\MDD.mdb"));
if(!m_pDatabase->IsOpen())
{
m_pDatabase->Open(NULL,FALSE,FALSE,sDsn);
}
.............................................................
//HERE I NEED THE CODE TO CHECK WHETHER THE DATABASE HAS ANY TABLES ,IF YES ,I NEED TO DELETE THOSE TABLES.
..............................................................
I DON'T KNOW HOW TO GET CONNECTION OBJECT HERE BECAUSE I DON'T FIND ANYTHING LIKE CONNECTION OBJECT WHILE USING ODBC,CDATABASE AND CRECORDSET CLASS.
....................................................................
ANY HELP WILL BE GREATLY APPRICIATED.
..........................................
THANKS AND REGARDS.

QuestionFlowChart Ctrl ? Pin
ScorpioMidget10-Aug-03 22:17
ScorpioMidget10-Aug-03 22:17 
Questionread file wrong? Pin
Member 43880310-Aug-03 21:19
Member 43880310-Aug-03 21:19 
GeneralAlt Key Pin
s o v a n n10-Aug-03 20:45
s o v a n n10-Aug-03 20:45 
GeneralRe: Alt Key Pin
PJ Arends10-Aug-03 20:58
professionalPJ Arends10-Aug-03 20:58 
Generaldetecting network capacity and type Pin
karanba10-Aug-03 20:43
karanba10-Aug-03 20:43 
GeneralDetecting memory leaks Pin
Imtiaz Murtaza10-Aug-03 20:32
Imtiaz Murtaza10-Aug-03 20:32 
GeneralRe: Detecting memory leaks Pin
Anthony_Yio11-Aug-03 0:51
Anthony_Yio11-Aug-03 0:51 
GeneralBind to picture control Pin
henli10-Aug-03 20:16
henli10-Aug-03 20:16 
Questionhow to catch "Access violation Exception" Pin
zecodela10-Aug-03 20:06
zecodela10-Aug-03 20:06 
AnswerRe: how to catch "Access violation Exception" Pin
Michael Dunn10-Aug-03 20:13
sitebuilderMichael Dunn10-Aug-03 20:13 
AnswerRe: how to catch "Access violation Exception" Pin
ullasd10-Aug-03 22:51
ullasd10-Aug-03 22:51 
GeneralRe: how to catch "Access violation Exception" Pin
Anthony_Yio11-Aug-03 0:52
Anthony_Yio11-Aug-03 0:52 
GeneralRe: how to catch "Access violation Exception" Pin
zecodela11-Aug-03 4:47
zecodela11-Aug-03 4:47 
GeneralHelp on ToolBar Drop down arrow Pin
skea10-Aug-03 17:54
skea10-Aug-03 17:54 
GeneralRe: Help on ToolBar Drop down arrow Pin
Nuehli10-Aug-03 19:16
Nuehli10-Aug-03 19:16 
GeneralRe: Not an icon but a toolbar drop down arrow Pin
skea11-Aug-03 10:41
skea11-Aug-03 10:41 
GeneralMessage intercept Pin
bitpusher10-Aug-03 16:29
bitpusher10-Aug-03 16:29 

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.