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. My Sql Connectiom

My Sql Connectiom

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

    Hi All I need to connected Mysql through mfc code.I have found article which is very good.They all are advice to insttal drive ODBC.I do it and it's working.But i have a question about that,can i make connection without any external driver. Plz advice me

    C S 2 Replies Last reply
    0
    • M MsmVc

      Hi All I need to connected Mysql through mfc code.I have found article which is very good.They all are advice to insttal drive ODBC.I do it and it's working.But i have a question about that,can i make connection without any external driver. Plz advice me

      C Offline
      C Offline
      Christopher W Smith
      wrote on last edited by
      #2

      I am not overly familiar with ODBC but I have had to write applications that need to communicate with a database. Check out the MySQL C API http://dev.mysql.com/doc/refman/5.0/en/c.html[^] the C++ wrapper for the MySQL C API http://tangentsoft.net/mysql++/[^] Also if you are communicating with a web server database consider writing a server side web script to handle database queries and communicate with it with. URLDownloadToCacheFile http://msdn.microsoft.com/en-us/library/ms775122(VS.85).aspx[^] This might or might not be reasonable depending on what you are trying to accomplish, but it is probably the quickest and easiest way to get the job done for basic web database queries.

      Chris Smith

      M 1 Reply Last reply
      0
      • C Christopher W Smith

        I am not overly familiar with ODBC but I have had to write applications that need to communicate with a database. Check out the MySQL C API http://dev.mysql.com/doc/refman/5.0/en/c.html[^] the C++ wrapper for the MySQL C API http://tangentsoft.net/mysql++/[^] Also if you are communicating with a web server database consider writing a server side web script to handle database queries and communicate with it with. URLDownloadToCacheFile http://msdn.microsoft.com/en-us/library/ms775122(VS.85).aspx[^] This might or might not be reasonable depending on what you are trying to accomplish, but it is probably the quickest and easiest way to get the job done for basic web database queries.

        Chris Smith

        M Offline
        M Offline
        MsmVc
        wrote on last edited by
        #3

        thanks for reply.You have given me this link but sorry it's not use for me. My question is,Can i make connection without any ODBC Driver?

        1 Reply Last reply
        0
        • M MsmVc

          Hi All I need to connected Mysql through mfc code.I have found article which is very good.They all are advice to insttal drive ODBC.I do it and it's working.But i have a question about that,can i make connection without any external driver. Plz advice me

          S Offline
          S Offline
          Stuart Dootson
          wrote on last edited by
          #4

          These are the available connectors[^]. As you see, there is a C++ connector - but that uses classes that MySQL provide, not the MFC classes. I think that's the closest to what you're asking for.

          Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

          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