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. database probelm

database probelm

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

    Hi, I have a mysql database on a Redhat linux system.I want to access that database using VC++ as the front end.How should I do?Can someone provide a sample example code for this. Karteek

    J L 2 Replies Last reply
    0
    • K karteek

      Hi, I have a mysql database on a Redhat linux system.I want to access that database using VC++ as the front end.How should I do?Can someone provide a sample example code for this. Karteek

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

      http://www.mysql.com/products/mysql++/index.html[^] http://www.mysql.com/documentation/mysql++/index.html[^]

      Jon Sagara Vegetarianism is unhealthy. Humans need protein, and lots of it. Put down those sprouts and pick up a T-bone! -- Michael Moore
      Latest Article: Breadcrumbs in ASP.NET

      1 Reply Last reply
      0
      • K karteek

        Hi, I have a mysql database on a Redhat linux system.I want to access that database using VC++ as the front end.How should I do?Can someone provide a sample example code for this. Karteek

        L Offline
        L Offline
        l a u r e n
        wrote on last edited by
        #3

        just use odbc there is an odbc driver for mysql on their website :)


        "there is no spoon"
        biz stuff   about me

        K 1 Reply Last reply
        0
        • L l a u r e n

          just use odbc there is an odbc driver for mysql on their website :)


          "there is no spoon"
          biz stuff   about me

          K Offline
          K Offline
          karteek
          wrote on last edited by
          #4

          Hi, Thanks a lot. But still I have a problem.I got the ODBC driver and created a DSN and wrote a sample WIN32 Console appln to test it .But it is not working.Please check this code. #include "stdafx.h" #include #include int main(int argc, char* argv[]) { printf("Hello World!\n"); CDatabase c; c.Open(_T("test"),FALSE,FALSE,_T("ODBC"),TRUE); return 0; } It is giving the following errors. --------------------Configuration: kardb - Win32 Debug-------------------- Compiling... kardb.cpp Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Debug/kardb.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. kardb.exe - 3 error(s), 0 warning(s)

          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