Solved

Using List control box to show all the records in a database table

Posted on 2001-07-16
4
219 Views
Last Modified: 2013-11-20
Hi, I am just new in MFC. I have a question about using List control box to show all the records (one field) in a database table. The records are got by ODBC link. How can I set the CRecordSet, CRecordView, and use their information to show all the record on my List control box. It is better to give me some sample codes. Thanks lot.
0
Comment
Question by:su168
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
GloriousRain earned 75 total points
ID: 6288247
go to
http://msdn.microsoft.com/library/devprods/vs6/visualc/vcsample/_sample_mfc_daoview.htm
DAOVIEW: Database Browser
MSDN Library - Visual Studio 6.0 Documentation - Visual C++ Documentation - Visual C++ Samples.
It uses DAO, you can base on it to develop for ODBC
0
 

Expert Comment

by:ahphone
ID: 6288439
A ListBox Can not add to many string to it(about 32000 items).You should select part of your records to put in a ListBox control.
0
 

Expert Comment

by:ahphone
ID: 6288881
Maybe I have made a fatal mistake!
Can i modify the answer to comment?
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 9490525
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

GloriousRain

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Roshan Davis
EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hibernate methods 2 68
has77  challenge 9 71
withoutTen challenge 14 97
Line meaning 9 81
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now