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. connect to remote mysql with out using ODBC

connect to remote mysql with out using ODBC

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

    i am using vc++6 MFC and dialogs i want to connect to my remote mysql database and put the results in a CListView, any example i find uses ODBC, where a window box is poped up and a you have to select a ODBC. can i not just connect directly to the mysql server? Or if a OBDC has to be used can i hard code one in and how? thanks

    I 1 Reply Last reply
    0
    • V viperlogic

      i am using vc++6 MFC and dialogs i want to connect to my remote mysql database and put the results in a CListView, any example i find uses ODBC, where a window box is poped up and a you have to select a ODBC. can i not just connect directly to the mysql server? Or if a OBDC has to be used can i hard code one in and how? thanks

      I Offline
      I Offline
      includeh10
      wrote on last edited by
      #2

      1. go to mysql.com to download c library, which contains c functions for accessing mysql database and is free. 2. go to your host to add your PC's IP address to mysql database, otherwise you can not access your mysql database.


      A nice tool for optimizing your Microsoft html-help contents. Includeh10

      V 1 Reply Last reply
      0
      • I includeh10

        1. go to mysql.com to download c library, which contains c functions for accessing mysql database and is free. 2. go to your host to add your PC's IP address to mysql database, otherwise you can not access your mysql database.


        A nice tool for optimizing your Microsoft html-help contents. Includeh10

        V Offline
        V Offline
        viperlogic
        wrote on last edited by
        #3

        ah right, im am using a mysql wrapper already (MySQLWrapp), was just wondering how to get the data into a CListView. like all the columns and rows. all the examples show how with ODBC

        I 1 Reply Last reply
        0
        • V viperlogic

          ah right, im am using a mysql wrapper already (MySQLWrapp), was just wondering how to get the data into a CListView. like all the columns and rows. all the examples show how with ODBC

          I Offline
          I Offline
          includeh10
          wrote on last edited by
          #4

          if u can read records from mysql db, why can't u add them to CListView? is ur question about mysql or CListView?


          A nice tool for optimizing your Microsoft html-help contents. Includeh10

          T 1 Reply Last reply
          0
          • I includeh10

            if u can read records from mysql db, why can't u add them to CListView? is ur question about mysql or CListView?


            A nice tool for optimizing your Microsoft html-help contents. Includeh10

            T Offline
            T Offline
            toxcct
            wrote on last edited by
            #5

            i think his problem is MFC because he's been asking so manu times about data binding... :( see by your eyes[^]...

            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