Click here to Skip to main content
16,005,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSmart Pointers Pin
Gerry13-Nov-00 5:44
Gerry13-Nov-00 5:44 
GeneralRe: Smart Pointers Pin
Erik Funkenbusch13-Nov-00 7:24
Erik Funkenbusch13-Nov-00 7:24 
GeneralRe: Smart Pointers Pin
Gerry13-Nov-00 22:39
Gerry13-Nov-00 22:39 
GeneralRe: Smart Pointers Pin
Erik Funkenbusch14-Nov-00 10:37
Erik Funkenbusch14-Nov-00 10:37 
QuestionHow do I determine mouse cursor size? Pin
13-Nov-00 5:37
suss13-Nov-00 5:37 
AnswerRe: How do I determine mouse cursor size? Pin
14-Nov-00 5:19
suss14-Nov-00 5:19 
GeneralProblem to launch WIN NT 'Net Send' programatically Pin
13-Nov-00 4:14
suss13-Nov-00 4:14 
GeneralWeird DAO Problems Pin
13-Nov-00 1:11
suss13-Nov-00 1:11 
I've been working on an app for the last week or two, and everything was going fine until yesterday.

I have an Access database with a handful of tables. I use the following code to (successfully) open the database:

CString sDbName = "igps3.mdb"
CDaoDatabase* m_pDB = new CDaoDatabase();
m_pDB->Open(sDbName);

Next, I open recordsets (created with ClassWizard) for some of the tables. One of the tables is now inexplicably failing in the Open() function, but I don't know why. It honestly just started happening all of a sudden. Here's the code I use in my app:

int nOpenType = AFX_DAO_USE_DEFAULT_TYPE;
CRSDrivers* m_pRSDrivers = new CRSDrivers(m_pDB);
m_pRSDrivers->Open(nOpenType, "SELECT * FROM drivers");

The table exists in the database, and it appears to be okay. I've tried recreating the table from scratch, as well as creating a completely new table. It doesn't metter whether I try to open the recordset first, last, or somewhere in between. All of the other recordsets open without complaint.

Nothing seems to matter. All of the other recordsets open without any problem.

The program stops with a C++ exception in DaoCore.cpp after an attempt is made to open the daotabledef.

This is my first database app and I'm kind of at a loss.

Any suggestions would be appreciated.
GeneralCString in non-MFC application Pin
12-Nov-00 17:58
suss12-Nov-00 17:58 
GeneralRe: CString in non-MFC application Pin
Uwe Keim12-Nov-00 19:23
sitebuilderUwe Keim12-Nov-00 19:23 
GeneralDirectX problem Pin
rtortora12-Nov-00 11:12
rtortora12-Nov-00 11:12 
GeneralPassing Class Pointers Pin
12-Nov-00 9:59
suss12-Nov-00 9:59 
GeneralRe: Passing Class Pointers Pin
12-Nov-00 18:19
suss12-Nov-00 18:19 
GeneralRe: Passing Class Pointers Pin
12-Nov-00 19:28
suss12-Nov-00 19:28 
GeneralCapturing whole Form View Pin
Suha Aktan12-Nov-00 9:03
Suha Aktan12-Nov-00 9:03 
GeneralRe: Capturing whole Form View Pin
12-Nov-00 12:48
suss12-Nov-00 12:48 
GeneralCalling C++ functions from C code Pin
David Wulff11-Nov-00 13:35
David Wulff11-Nov-00 13:35 
GeneralOffice 2000 Gui font Pin
Joel Holdsworth11-Nov-00 10:16
Joel Holdsworth11-Nov-00 10:16 
GeneralRe: Office 2000 Gui font Pin
David Wulff11-Nov-00 13:37
David Wulff11-Nov-00 13:37 
GeneralRe: Office 2000 Gui font Pin
Uwe Keim12-Nov-00 19:25
sitebuilderUwe Keim12-Nov-00 19:25 
GeneralRe: Office 2000 Gui font Pin
David Wulff13-Nov-00 6:18
David Wulff13-Nov-00 6:18 
GeneralRe: Office 2000 Gui font Pin
Michael Dunn13-Nov-00 7:11
sitebuilderMichael Dunn13-Nov-00 7:11 
GeneralRe: Office 2000 Gui font Pin
13-Nov-00 7:16
suss13-Nov-00 7:16 
GeneralExport a function from a dll Pin
11-Nov-00 7:13
suss11-Nov-00 7:13 
GeneralRe: Export a function from a dll Pin
Michael Dunn11-Nov-00 8:26
sitebuilderMichael Dunn11-Nov-00 8:26 

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.