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 in VC++ not working.

DAO in VC++ not working.

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpdatabasewindows-admin
5 Posts 3 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.
  • A Offline
    A Offline
    a3gupta
    wrote on last edited by
    #1

    Hello, I will really appreciate any input on the following problems. I am implementing the Database operations using MFC .. and using DAO. The problem is when the program goes to get the data, it just quits. THIS HAPPENS ONLY ON SOME COMPUTERS. It just simply quits! This was happening when I was implementing ODBC in the same program. The screen where it is supposed to display the data, when it goes to the screen .. it just disappears and terminates. My database is in .mdb format. The other problem is that it says "Unrecognized database format" if I write my database in Access 2000. I am wondering if there are some win registry entries that are not being updated or something. Thank you very much for your time and help ! Sincerely, Anjum.

    M S 2 Replies Last reply
    0
    • A a3gupta

      Hello, I will really appreciate any input on the following problems. I am implementing the Database operations using MFC .. and using DAO. The problem is when the program goes to get the data, it just quits. THIS HAPPENS ONLY ON SOME COMPUTERS. It just simply quits! This was happening when I was implementing ODBC in the same program. The screen where it is supposed to display the data, when it goes to the screen .. it just disappears and terminates. My database is in .mdb format. The other problem is that it says "Unrecognized database format" if I write my database in Access 2000. I am wondering if there are some win registry entries that are not being updated or something. Thank you very much for your time and help ! Sincerely, Anjum.

      M Offline
      M Offline
      Martin Ziacek
      wrote on last edited by
      #2

      a3gupta wrote: The problem is when the program goes to get the data, it just quits. THIS HAPPENS ONLY ON SOME COMPUTERS. Does your installation program for your application include installation of DAO runtime components? a3gupta wrote: My database is in .mdb format. The other problem is that it says "Unrecognized database format" if I write my database in Access 2000. What version of MFC do you use?

      A 1 Reply Last reply
      0
      • M Martin Ziacek

        a3gupta wrote: The problem is when the program goes to get the data, it just quits. THIS HAPPENS ONLY ON SOME COMPUTERS. Does your installation program for your application include installation of DAO runtime components? a3gupta wrote: My database is in .mdb format. The other problem is that it says "Unrecognized database format" if I write my database in Access 2000. What version of MFC do you use?

        A Offline
        A Offline
        a3gupta
        wrote on last edited by
        #3

        Thank you very much for your response. I am installing following files in my installation program: DAO350.DLL DAO2535.TLB MSJTER35.DLL MSJINT35.DLL MSVCRT40.DLL MSJET35.DLL MSRD2X35.DLL MSJTER35.DLL MSJINT35.DLL VBAJET32.DLL VBAR332.DLL I am using Visual Studio 6. So .. Visual C++ 6. It works fine on my computer .. but doesn't work on somebody elses computer. They don't have Visual Studio installed .. But ... I run the installation program. I am making the setup program using Installshield for Visual C++ 6. Thank! Hope this infomation will be useful. Sincerley, Anjum.

        M 1 Reply Last reply
        0
        • A a3gupta

          Thank you very much for your response. I am installing following files in my installation program: DAO350.DLL DAO2535.TLB MSJTER35.DLL MSJINT35.DLL MSVCRT40.DLL MSJET35.DLL MSRD2X35.DLL MSJTER35.DLL MSJINT35.DLL VBAJET32.DLL VBAR332.DLL I am using Visual Studio 6. So .. Visual C++ 6. It works fine on my computer .. but doesn't work on somebody elses computer. They don't have Visual Studio installed .. But ... I run the installation program. I am making the setup program using Installshield for Visual C++ 6. Thank! Hope this infomation will be useful. Sincerley, Anjum.

          M Offline
          M Offline
          Martin Ziacek
          wrote on last edited by
          #4

          I am not sure, if this article Q236991 will solve the all your troubles, but at least second one should be rectified.

          1 Reply Last reply
          0
          • A a3gupta

            Hello, I will really appreciate any input on the following problems. I am implementing the Database operations using MFC .. and using DAO. The problem is when the program goes to get the data, it just quits. THIS HAPPENS ONLY ON SOME COMPUTERS. It just simply quits! This was happening when I was implementing ODBC in the same program. The screen where it is supposed to display the data, when it goes to the screen .. it just disappears and terminates. My database is in .mdb format. The other problem is that it says "Unrecognized database format" if I write my database in Access 2000. I am wondering if there are some win registry entries that are not being updated or something. Thank you very much for your time and help ! Sincerely, Anjum.

            S Offline
            S Offline
            Schnemar
            wrote on last edited by
            #5

            Hi, I had the same problem with "Unrecognized database format" and I solved it like this: In InitInstance() of my App-Class I put the follwing line: AfxGetModuleState()->m_dwVersion = 0x0601; That was it. For further Information see the follwing Article on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmsj00/html/cpp0100.asp I hope that helps you. MS

            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