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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MySQL help!!!

MySQL help!!!

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++databasemysqlquestion
6 Posts 4 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.
  • B Offline
    B Offline
    Bill Gates Antimatter Particle
    wrote on last edited by
    #1

    Has anybody used MySQL via MFC? All I need to do first off is get a noddy database working programmaticly using MySQL in MFC. eg Name Table:- (Unique ID,Surname,Forename,DOB,UniqueKey) Address Table:- (Unique ID,LineOne,District,Town,County,PostCode) Contact Table:- (UniqueID,Number,Type) Can anybody do this in their coffee break? Im stuck where to start is the problem. Im sure its a doddle though. :confused: "Life begins at 140"

    J N 2 Replies Last reply
    0
    • B Bill Gates Antimatter Particle

      Has anybody used MySQL via MFC? All I need to do first off is get a noddy database working programmaticly using MySQL in MFC. eg Name Table:- (Unique ID,Surname,Forename,DOB,UniqueKey) Address Table:- (Unique ID,LineOne,District,Town,County,PostCode) Contact Table:- (UniqueID,Number,Type) Can anybody do this in their coffee break? Im stuck where to start is the problem. Im sure its a doddle though. :confused: "Life begins at 140"

      J Offline
      J Offline
      Jon Hulatt
      wrote on last edited by
      #2

      Really what is the need to repost? I answered your first question. Perhaps you should follow my advice. Read MSDN a little too. People here are happy to help, but not to do your work for you. Sorry to dissapoint you all with my lack of a witty or poignant signature.

      B 1 Reply Last reply
      0
      • J Jon Hulatt

        Really what is the need to repost? I answered your first question. Perhaps you should follow my advice. Read MSDN a little too. People here are happy to help, but not to do your work for you. Sorry to dissapoint you all with my lack of a witty or poignant signature.

        B Offline
        B Offline
        Bill Gates Antimatter Particle
        wrote on last edited by
        #3

        The reason I reposted is that you did not answer my question. I was happy to receive a response: however I do not want to use MyODBC! That is the whole point. It is too slow. I want to use MySQL++ preferably or MySQL c api. Any further constructive responses are welcome. "Life begins at 140"

        M 1 Reply Last reply
        0
        • B Bill Gates Antimatter Particle

          The reason I reposted is that you did not answer my question. I was happy to receive a response: however I do not want to use MyODBC! That is the whole point. It is too slow. I want to use MySQL++ preferably or MySQL c api. Any further constructive responses are welcome. "Life begins at 140"

          M Offline
          M Offline
          markkuk
          wrote on last edited by
          #4

          You said you want to use MySQL via MFC, and the MFC database classes are based on ODBC (requiring the use of MyODBC). If you want to use MySQL++ or MySQL C API, you won't be using it via MFC.

          B 1 Reply Last reply
          0
          • B Bill Gates Antimatter Particle

            Has anybody used MySQL via MFC? All I need to do first off is get a noddy database working programmaticly using MySQL in MFC. eg Name Table:- (Unique ID,Surname,Forename,DOB,UniqueKey) Address Table:- (Unique ID,LineOne,District,Town,County,PostCode) Contact Table:- (UniqueID,Number,Type) Can anybody do this in their coffee break? Im stuck where to start is the problem. Im sure its a doddle though. :confused: "Life begins at 140"

            N Offline
            N Offline
            Nish Nishant
            wrote on last edited by
            #5

            Bill Gates Antimatter Particle wrote: Can anybody do this in their coffee break? Ouch!!!! Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

            1 Reply Last reply
            0
            • M markkuk

              You said you want to use MySQL via MFC, and the MFC database classes are based on ODBC (requiring the use of MyODBC). If you want to use MySQL++ or MySQL C API, you won't be using it via MFC.

              B Offline
              B Offline
              Bill Gates Antimatter Particle
              wrote on last edited by
              #6

              What you said is correct except for one thing. Its not necessary to use CRecordset. If you avoid CRecordset then you dont require ODBC drivers. I have now managed to create a project using MySQL++ api directly. It is many times faster than interfacing to the MySQL api via ODBC eg opening a table via ODBC driver was s - l - o - w ~ 2 seconds a table as opposed to 0.05 seconds using the MySQL++ api directly. That was the question I was asking and which nobody attempted to answer.:mad: "Life begins at 140"

              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