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. Converting Jet 3.0 file to Jet 4.0

Converting Jet 3.0 file to Jet 4.0

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
5 Posts 3 Posters 1 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.
  • D Offline
    D Offline
    Doug Garno
    wrote on last edited by
    #1

    Does anyone know how to convert the Jet 3.0 file into Jet 4.0 format? The CDaoDatabase::CompactDatabase() can only specify dbVersion30 option. Looking at the available options it appears that MFC and DAO hasn't a option for dbVersion40.

    H T 2 Replies Last reply
    0
    • D Doug Garno

      Does anyone know how to convert the Jet 3.0 file into Jet 4.0 format? The CDaoDatabase::CompactDatabase() can only specify dbVersion30 option. Looking at the available options it appears that MFC and DAO hasn't a option for dbVersion40.

      H Offline
      H Offline
      Hadi Rezaee
      wrote on last edited by
      #2

      For opening the Access 2000 (Jet engine 4.0): You must write: AfxGetModuleState->m_Version = 0x601; Then you can open Access 2000 files with: m_db.Open("C:\\db1.mdb"); // ACCESS 2000 FILE ;) My month article: Game programming by DirectX by Lan Mader. Please visit in: www.geocities.com/hadi_rezaie/index.html Hadi Rezaie

      D 1 Reply Last reply
      0
      • H Hadi Rezaee

        For opening the Access 2000 (Jet engine 4.0): You must write: AfxGetModuleState->m_Version = 0x601; Then you can open Access 2000 files with: m_db.Open("C:\\db1.mdb"); // ACCESS 2000 FILE ;) My month article: Game programming by DirectX by Lan Mader. Please visit in: www.geocities.com/hadi_rezaie/index.html Hadi Rezaie

        D Offline
        D Offline
        Doug Garno
        wrote on last edited by
        #3

        Yes you are correct, that is what is required to Open a Jet 4.0 file, but that doesn't convert the file from 3.0 format to 4.0.

        1 Reply Last reply
        0
        • D Doug Garno

          Does anyone know how to convert the Jet 3.0 file into Jet 4.0 format? The CDaoDatabase::CompactDatabase() can only specify dbVersion30 option. Looking at the available options it appears that MFC and DAO hasn't a option for dbVersion40.

          T Offline
          T Offline
          Tomasz Sowinski
          wrote on last edited by
          #4

          dbdaoint.h contains the following enumeration...

          typedef enum DatabaseTypeEnum {
          dbVersion10 = 1,
          dbEncrypt = 2,
          dbDecrypt = 4,
          dbVersion11 = 8,
          dbVersion20 = 16,
          dbVersion30 = 32
          } DatabaseTypeEnum;

          ... so it seems that dbVersion40 equals 64. You can also use Object Viewer in Visual Basic to check the actual value from type library. Access 2000 should also have this defined. Anyway, let me know what happens with 0x40 :-D Tomasz Sowinski -- http://www.shooltz.com

          D 1 Reply Last reply
          0
          • T Tomasz Sowinski

            dbdaoint.h contains the following enumeration...

            typedef enum DatabaseTypeEnum {
            dbVersion10 = 1,
            dbEncrypt = 2,
            dbDecrypt = 4,
            dbVersion11 = 8,
            dbVersion20 = 16,
            dbVersion30 = 32
            } DatabaseTypeEnum;

            ... so it seems that dbVersion40 equals 64. You can also use Object Viewer in Visual Basic to check the actual value from type library. Access 2000 should also have this defined. Anyway, let me know what happens with 0x40 :-D Tomasz Sowinski -- http://www.shooltz.com

            D Offline
            D Offline
            Doug Garno
            wrote on last edited by
            #5

            That worked: CDaoWorkspace::CompactDatabase( csOld, csNew, dbLangGeneral, 64 ); I was leaning that way but I thought I would just ask the experts here and save me some time. Thanks for your help.

            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