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. Database & SysAdmin
  3. Database
  4. MDAC installation check

MDAC installation check

Scheduled Pinned Locked Moved Database
c++question
3 Posts 3 Posters 2 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.
  • J Offline
    J Offline
    John Smith
    wrote on last edited by
    #1

    How can I check if MDAC is installed on the machine in Visual C++ ?

    L R 2 Replies Last reply
    0
    • J John Smith

      How can I check if MDAC is installed on the machine in Visual C++ ?

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

      There's a registry key HKEY_CLASSES_ROOT\MDACVer.Version with a subkey CurVer with the value like MDACVer.Version.2.60. I don't know if all MDAC version supports this key. Volker

      1 Reply Last reply
      0
      • J John Smith

        How can I check if MDAC is installed on the machine in Visual C++ ?

        R Offline
        R Offline
        Rashid Thadha
        wrote on last edited by
        #3

        use this code on ::InitInstance

        CLSID clsid;
        HRESULT hr = AfxGetClassIDFromString("Datalinks", &clsid);
        if(!SUCCEEDED(hr))
        {
            AfxMessageBox("You need to install MDAC v2.1 or higher");
            return FALSE;
        }
        

        :cool:

        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