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. <h2>somebody tell me how to setup data source</h2>

<h2>somebody tell me how to setup data source</h2>

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpdatabasetutorialworkspace
6 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.
  • C Offline
    C Offline
    c
    wrote on last edited by
    #1

    My have writen an application which uses ODBC and Ms Access database, using visual c++ .net. I need to know how setup the data source programmatically, when the application is been installed. I need to do programmatically the stuff you do with odbc addministrator tool. thaxx hussein

    T D 2 Replies Last reply
    0
    • C c

      My have writen an application which uses ODBC and Ms Access database, using visual c++ .net. I need to know how setup the data source programmatically, when the application is been installed. I need to do programmatically the stuff you do with odbc addministrator tool. thaxx hussein

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

      What is with the H2 stuff? Trying to make your question stand out from the rest? Tim Smith I'm going to patent thought. I have yet to see any prior art.

      C 1 Reply Last reply
      0
      • C c

        My have writen an application which uses ODBC and Ms Access database, using visual c++ .net. I need to know how setup the data source programmatically, when the application is been installed. I need to do programmatically the stuff you do with odbc addministrator tool. thaxx hussein

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

        The function you are looking for is SQLConfigDataSource().


        "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

        C 1 Reply Last reply
        0
        • T Tim Smith

          What is with the H2 stuff? Trying to make your question stand out from the rest? Tim Smith I'm going to patent thought. I have yet to see any prior art.

          C Offline
          C Offline
          c
          wrote on last edited by
          #4

          h2 is a html tag. Yes to make the question stand out. But it does't seem to be working. hussein

          1 Reply Last reply
          0
          • D David Crow

            The function you are looking for is SQLConfigDataSource().


            "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

            C Offline
            C Offline
            c
            wrote on last edited by
            #5

            Next question is how i call this function from the setup program? hussein

            D 1 Reply Last reply
            0
            • C c

              Next question is how i call this function from the setup program? hussein

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

              You call it just like you would any other function. Check the documentation for the parameter list.


              "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

              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