display data from a db in VC++6
-
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
-
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
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.
-
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
There are a lots of examples for using the CListCtrl - exactily what you need!
-
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.
i am using MFC & dialogs alright