Problem with afxdb.h

Discussion in 'C' started by giocarmine, Nov 16, 2009.

  1. giocarmine

    giocarmine New Member

    Joined:
    Nov 16, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    I'm writing a simple console application using Visual Studio 2008 pro.
    I need to connect to an Access database, so i decided to use MFC libraries.

    I included afxdb.h, but when i compile my application, i get the following errors:

    d:\programmi\microsoft visual studio 9.0\vc\atlmfc\include\afxdb.h(318) : error C2248: 'CObject::CObject': unable to access to private member declared in class 'CObject'

    d:\programmi\microsoft visual studio 9.0\vc\atlmfc\include\afxdb.h(957) : error C2248: 'CObject::CObject': unable to access to private member declared in class 'CObject'


    I found on google something about problems with afxdb.h using Unicode.
    I checked all my project configuration and i removed the only reference to Unicode that i found, precisely i set the character set to "undefined".

    I hope someone can give me an hint..
    thank you in advice :)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice