?
Solved

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

Posted on 2001-07-16
4
Medium Priority
?
264 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 300 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

762 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