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. dialog based problem

dialog based problem

Scheduled Pinned Locked Moved C / C++ / MFC
databasehelptutorialquestion
3 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.
  • R Offline
    R Offline
    rowdy_vc
    wrote on last edited by
    #1

    hi i prepared one project in dialog based application but i need database suppot for this appl;ication how to solve it?

    *****THANKS N ADVANCE**** Mathen.K (I WILL TRY MY LEVEL BEST )

    J D 2 Replies Last reply
    0
    • R rowdy_vc

      hi i prepared one project in dialog based application but i need database suppot for this appl;ication how to solve it?

      *****THANKS N ADVANCE**** Mathen.K (I WILL TRY MY LEVEL BEST )

      J Offline
      J Offline
      Joseph Marzbani
      wrote on last edited by
      #2

      First of all you need to go to "control panel\Administrative Tools\Data Sources (ODBC)" and prepare a DSN (Data Source Name). You should define a path to your database file (e.g MyDatabase.mdb) there. After that you must add a class to your project, base on ODBC, and define that DSN as database source. finally costruct an object from new class and enjoy! Note that you can change the path of your database file in "GetDefault...()" function within your new database class (Sorry! I couldn't remember the full name of that function :laugh: )

      1 Reply Last reply
      0
      • R rowdy_vc

        hi i prepared one project in dialog based application but i need database suppot for this appl;ication how to solve it?

        *****THANKS N ADVANCE**** Mathen.K (I WILL TRY MY LEVEL BEST )

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

        You can always do this even after a project has been created by using ClassWizard (Ctrl+W) to derive a class from CRecordset. A DSN (that layer between your code and the database) is nice but it is not necessary.

        "Love people and use things, not love things and use people." - Unknown

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        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