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. display data from a db in VC++6

display data from a db in VC++6

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

    hi i am using visual studio c++ 6 and SDK (feb 2003 edition) I want to display data from a database (MySQL 4.1.18) in a dialog box i have. Do i use a editbox or listbox or datagrid or ??? i just want to display it, dont want the user to edit it etc. so i think it is called virtual data? i want to have row and columns and the columns to have headings. eg name | address | phone | sex | subject | aaa| bbb | ccc | etc | etc --------------------------------------------------------------------- mark | usa | 0212 | male | math | aaa| bbb | ccc | etc | etc tom | address | phone | sex | subject | aaa| bbb | ccc | etc | etc ken | address | phone | sex | subject | aaa| bbb | ccc | etc | etc si | address | phone | sex | subject | aaa| bbb | ccc | etc | etc is there any sample app/code here that does this? many thanks -- modified at 7:36 Thursday 23rd March, 2006

    stefanmihaimogaS W 2 Replies Last reply
    0
    • V viperlogic

      hi i am using visual studio c++ 6 and SDK (feb 2003 edition) I want to display data from a database (MySQL 4.1.18) in a dialog box i have. Do i use a editbox or listbox or datagrid or ??? i just want to display it, dont want the user to edit it etc. so i think it is called virtual data? i want to have row and columns and the columns to have headings. eg name | address | phone | sex | subject | aaa| bbb | ccc | etc | etc --------------------------------------------------------------------- mark | usa | 0212 | male | math | aaa| bbb | ccc | etc | etc tom | address | phone | sex | subject | aaa| bbb | ccc | etc | etc ken | address | phone | sex | subject | aaa| bbb | ccc | etc | etc si | address | phone | sex | subject | aaa| bbb | ccc | etc | etc is there any sample app/code here that does this? many thanks -- modified at 7:36 Thursday 23rd March, 2006

      W Offline
      W Offline
      Waldermort
      wrote on last edited by
      #2

      I am currently creating a similar application. My method of displaying the data is within a list view. This is suitable for my needs since I only need to display to the user a few hundred list items with some 15 columns. If you are coding in MFC you have a few more options available to you, for example datagrids and tables, though I have never used them.

      V 1 Reply Last reply
      0
      • V viperlogic

        hi i am using visual studio c++ 6 and SDK (feb 2003 edition) I want to display data from a database (MySQL 4.1.18) in a dialog box i have. Do i use a editbox or listbox or datagrid or ??? i just want to display it, dont want the user to edit it etc. so i think it is called virtual data? i want to have row and columns and the columns to have headings. eg name | address | phone | sex | subject | aaa| bbb | ccc | etc | etc --------------------------------------------------------------------- mark | usa | 0212 | male | math | aaa| bbb | ccc | etc | etc tom | address | phone | sex | subject | aaa| bbb | ccc | etc | etc ken | address | phone | sex | subject | aaa| bbb | ccc | etc | etc si | address | phone | sex | subject | aaa| bbb | ccc | etc | etc is there any sample app/code here that does this? many thanks -- modified at 7:36 Thursday 23rd March, 2006

        stefanmihaimogaS Offline
        stefanmihaimogaS Offline
        stefanmihaimoga
        wrote on last edited by
        #3

        There are a lots of examples for using the CListCtrl - exactily what you need!

        1 Reply Last reply
        0
        • W Waldermort

          I am currently creating a similar application. My method of displaying the data is within a list view. This is suitable for my needs since I only need to display to the user a few hundred list items with some 15 columns. If you are coding in MFC you have a few more options available to you, for example datagrids and tables, though I have never used them.

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

          i am using MFC & dialogs alright

          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