afxdao.h(1238) : error C2504: 'CFormView' : base class undefined 
Author Message
 afxdao.h(1238) : error C2504: 'CFormView' : base class undefined

What's wrong with my use of this object?  How does one create a
command line program that uses MFC?

#include <iostream.h>
#include <afxdao.h>
void PopulateTree(CDaoDatabase* m_pDB);
void main()
{
        CDaoDatabase* m_pDB = new CDaoDatabase;
        try     {

m_pDB->Open("c:\\dataarea\\source\\dbaccess\\employee.mdb");
        }
        catch (CDaoException* e)        {
                cout << e->m_pErrorInfo->m_strDescription;
                e->Delete();
        }
        /* do something with m_pDB then exit */

Quote:
}

Thanks in advance.....


Tue, 04 Dec 2001 03:00:00 GMT  
 afxdao.h(1238) : error C2504: 'CFormView' : base class undefined
It would seem that I've answered my own question by doing just a
little more reading about MFC.  Sorry people,  I suppose I'll keep on
reading but any hints at how to use MFC in a console application would
be helpful.    Thanks, and again I'm going to RTFM.


Wed, 05 Dec 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. error C2504: 'CDialog' : base class undefined

2. VC++ 5.0 COM support error: imsconf2.tlh(124) : error C2504: 'IUnknown' : base class undefined

3. BUG: (ADO, #import) msado15.tlh(873) : error C2504: '_Connection1 5' : base class undefined

4. Template problem error C2504: '_TM' base class undefined

5. BUG: (ADO, #import) msado15.tlh(873) : error C2504: '_Connection1 5' : base class undefined

6. VC++ 6.0 probleme : C2504 base class undefined

7. #imported dll - can't find base class error

8. Accessing Base Class's control's events

9. Error: CRecordset base class undefined

10. Base Class Undefined error in ATL 3.0

11. ATL in VC 6.0 base class undefined error

12. Compile Error : 'class' type redefinition

 

 
Powered by phpBB® Forum Software