Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DAO Database classes are not supported for Win64 platforms error help

DAO Database classes are not supported for Win64 platforms error help

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++database
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    Hi I am getting the above mentioned error in all my .cpp files I don't see any where I am using DAO classes maybe they are some how included in stdafx,h yes I am compiling as 64 bit code Thanks

    J L D 3 Replies Last reply
    0
    • F ForNow

      Hi I am getting the above mentioned error in all my .cpp files I don't see any where I am using DAO classes maybe they are some how included in stdafx,h yes I am compiling as 64 bit code Thanks

      J Offline
      J Offline
      Jochen Arndt
      wrote on last edited by
      #2

      Search your project files for afxdao.h and remove the include statements.

      1 Reply Last reply
      0
      • F ForNow

        Hi I am getting the above mentioned error in all my .cpp files I don't see any where I am using DAO classes maybe they are some how included in stdafx,h yes I am compiling as 64 bit code Thanks

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        ForNow wrote:

        I don't see any where I am using DAO classes

        Well we certainly can't without a lot more information. You need to look at where this message is produced and try to find out how it is including such references.

        Use the best guess

        F 1 Reply Last reply
        0
        • L Lost User

          ForNow wrote:

          I don't see any where I am using DAO classes

          Well we certainly can't without a lot more information. You need to look at where this message is produced and try to find out how it is including such references.

          Use the best guess

          F Offline
          F Offline
          ForNow
          wrote on last edited by
          #4

          This is where the output of my build I don't explicitly include it in any of my include flies

          1>ClCompile:
          1> HERC_CMD.cpp
          1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
          1> MainFrm.cpp
          1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
          1> MyBaseEvent.cpp
          1> Myexception.cpp
          1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
          1> progDebug.cpp
          1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
          1> progdialog.cpp
          1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
          1> Progedit.cpp
          1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
          1> Show_storage.cpp
          1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
          1> SockCLeintThread.cpp
          1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
          1> SockCLient.cpp
          1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
          1> stdafx.cpp
          1> StorageRange.cpp
          1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
          1>
          1>Build FAILED.
          1>
          1>Time Elapsed 00:00:22.35

          L J 2 Replies Last reply
          0
          • F ForNow

            This is where the output of my build I don't explicitly include it in any of my include flies

            1>ClCompile:
            1> HERC_CMD.cpp
            1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
            1> MainFrm.cpp
            1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
            1> MyBaseEvent.cpp
            1> Myexception.cpp
            1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
            1> progDebug.cpp
            1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
            1> progdialog.cpp
            1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
            1> Progedit.cpp
            1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
            1> Show_storage.cpp
            1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
            1> SockCLeintThread.cpp
            1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
            1> SockCLient.cpp
            1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
            1> stdafx.cpp
            1> StorageRange.cpp
            1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
            1>
            1>Build FAILED.
            1>
            1>Time Elapsed 00:00:22.35

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Well it's pretty clear that afxdao.h is being pulled into your compilations for some reason, so you need to examine your project to find out why. As a first step, try a Clean & Rebuild to see if that clears it.

            Use the best guess

            F 1 Reply Last reply
            0
            • L Lost User

              Well it's pretty clear that afxdao.h is being pulled into your compilations for some reason, so you need to examine your project to find out why. As a first step, try a Clean & Rebuild to see if that clears it.

              Use the best guess

              F Offline
              F Offline
              ForNow
              wrote on last edited by
              #6

              I a clean & re-build nothing I then did a search on "My Computer" and the only place afxdao.h came up with Was I. The include directories of mfc Thanks for your help

              L 1 Reply Last reply
              0
              • F ForNow

                I a clean & re-build nothing I then did a search on "My Computer" and the only place afxdao.h came up with Was I. The include directories of mfc Thanks for your help

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                ForNow wrote:

                I then did a search on "My Computer"

                Why? I suggested you investigate your project to find out where and why this header is getting included. Somehow, somewhere you have a setting that causes this header to be referenced, and since it is happening on every source file it is most likely to be one of your header files, or some project setting. Beyond that it is not easy to suggest anything.

                Use the best guess

                1 Reply Last reply
                0
                • F ForNow

                  Hi I am getting the above mentioned error in all my .cpp files I don't see any where I am using DAO classes maybe they are some how included in stdafx,h yes I am compiling as 64 bit code Thanks

                  D Offline
                  D Offline
                  David Crow
                  wrote on last edited by
                  #8

                  ForNow wrote:

                  maybe they are some how included in stdafx,h yes I am compiling as 64 bit code

                  What does that file look like?

                  "One man's wage rise is another man's price increase." - Harold Wilson

                  "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                  "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

                  1 Reply Last reply
                  0
                  • F ForNow

                    This is where the output of my build I don't explicitly include it in any of my include flies

                    1>ClCompile:
                    1> HERC_CMD.cpp
                    1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
                    1> MainFrm.cpp
                    1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
                    1> MyBaseEvent.cpp
                    1> Myexception.cpp
                    1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
                    1> progDebug.cpp
                    1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
                    1> progdialog.cpp
                    1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
                    1> Progedit.cpp
                    1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
                    1> Show_storage.cpp
                    1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
                    1> SockCLeintThread.cpp
                    1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
                    1> SockCLient.cpp
                    1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
                    1> stdafx.cpp
                    1> StorageRange.cpp
                    1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxdao.h(15): fatal error C1189: #error : DAO Database classes are not supported for Win64 platforms
                    1>
                    1>Build FAILED.
                    1>
                    1>Time Elapsed 00:00:22.35

                    J Offline
                    J Offline
                    JackDingler
                    wrote on last edited by
                    #9

                    From this, it looks like something is including it in stdafx.h Comment out includes in this file until you find it. It's likely a third party library header, or a header file that is local to you project.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups