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. Programatically creating DSN

Programatically creating DSN

Scheduled Pinned Locked Moved C / C++ / MFC
c++cssdatabasehelptutorial
2 Posts 2 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.
  • K Offline
    K Offline
    krugger
    wrote on last edited by
    #1

    Hi all; I have created an application requiring a DSN connection. Being myself new to Visual C++, i could not figure out how to do it "DSN-less". Now, i need to add the DSN programatically since i don't want users to create it themselves. Can anybody please help me out. My database is an Access database named: datastructor.mdb It is found in c:\datastructor and the password is datastructor Can somebody plz plz help. I badly need very fast Thank you before hand; Krugger

    T 1 Reply Last reply
    0
    • K krugger

      Hi all; I have created an application requiring a DSN connection. Being myself new to Visual C++, i could not figure out how to do it "DSN-less". Now, i need to add the DSN programatically since i don't want users to create it themselves. Can anybody please help me out. My database is an Access database named: datastructor.mdb It is found in c:\datastructor and the password is datastructor Can somebody plz plz help. I badly need very fast Thank you before hand; Krugger

      T Offline
      T Offline
      Todd Smith
      wrote on last edited by
      #2

      A DSN is just a registry key. Search the registry for a known one and you'll find the location. Todd Smith

      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