Solved

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

Posted on 2001-07-16
4
259 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

688 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