Click here to Skip to main content
15,880,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How tcp socket works for read & write both on same port? Pin
Code-o-mat24-Jun-11 0:25
Code-o-mat24-Jun-11 0:25 
GeneralRe: How tcp socket works for read & write both on same port? Pin
rahul.kulshreshtha24-Jun-11 1:15
rahul.kulshreshtha24-Jun-11 1:15 
GeneralRe: How tcp socket works for read & write both on same port? Pin
Code-o-mat24-Jun-11 1:20
Code-o-mat24-Jun-11 1:20 
GeneralRe: How tcp socket works for read & write both on same port? Pin
CPallini24-Jun-11 1:57
mveCPallini24-Jun-11 1:57 
AnswerRe: How tcp socket works for read & write both on same port? Pin
David Cunningham24-Jun-11 5:52
cofounderDavid Cunningham24-Jun-11 5:52 
AnswerRe: How tcp socket works for read & write both on same port? Pin
jschell24-Jun-11 7:52
jschell24-Jun-11 7:52 
GeneralRe: How tcp socket works for read & write both on same port? Pin
rahul.kulshreshtha24-Jun-11 15:54
rahul.kulshreshtha24-Jun-11 15:54 
QuestionPopulate list from database [modified] Pin
Germghost23-Jun-11 22:21
Germghost23-Jun-11 22:21 
Hi
I am very new to C++/MFC, I have a background of C# and I'm having to get to grips with the basics of C++/MFC to work on an older piece of software.

I am trying to create an application that will display a list of customers taken from an Access database, with dialogs to add and edit customers.

So, step 1, I need to get the list of customers.

So far I have done the following:

1 - Using the app wizard (I'm working with VS 2010), I have created an SDI application with document/view and database support, and derived the view from CListView.
2 - During the wizard I have connected to my database and selected a table.
3 - When the solution is generated, member variables are correctly created for the fields in the table, and code is generated for the DoFieldExchange method in the recordset.
4 - I added code to the OnInitialUpdate method of the view to add columns to the list view control.

Now I'm stuck - I don't know how to connect my recordset to this so that I get a list of customers. Currently all I get is an empty list control with just column headers.

Any help appeciated!

modified on Friday, June 24, 2011 4:44 AM

AnswerRe: Populate list from database Pin
David Crow24-Jun-11 3:07
David Crow24-Jun-11 3:07 
GeneralRe: Populate list from database Pin
Germghost24-Jun-11 3:25
Germghost24-Jun-11 3:25 
QuestionMemory alignment changed from studio 2005 to 2010? Pin
William Engberts23-Jun-11 20:55
William Engberts23-Jun-11 20:55 
QuestionRe: Memory alignment changed from studio 2005 to 2010? Pin
CPallini23-Jun-11 22:04
mveCPallini23-Jun-11 22:04 
AnswerRe: Memory alignment changed from studio 2005 to 2010? Pin
William Engberts23-Jun-11 22:25
William Engberts23-Jun-11 22:25 
QuestionRe: Memory alignment changed from studio 2005 to 2010? Pin
CPallini23-Jun-11 22:28
mveCPallini23-Jun-11 22:28 
GeneralRe: Memory alignment changed from studio 2005 to 2010? Pin
William Engberts23-Jun-11 22:30
William Engberts23-Jun-11 22:30 
AnswerRe: Memory alignment changed from studio 2005 to 2010? Pin
Alain Rist24-Jun-11 5:14
Alain Rist24-Jun-11 5:14 
QuestionMFC: Message-only CWnd in an SDI application. [modified] Pin
Odysseas Z23-Jun-11 5:17
Odysseas Z23-Jun-11 5:17 
AnswerRe: MFC: Message-only CWnd in an SDI application. Pin
jeron123-Jun-11 6:23
jeron123-Jun-11 6:23 
GeneralRe: MFC: Message-only CWnd in an SDI application. Pin
Odysseas Z23-Jun-11 6:43
Odysseas Z23-Jun-11 6:43 
GeneralRe: MFC: Message-only CWnd in an SDI application. Pin
Albert Holguin23-Jun-11 8:37
professionalAlbert Holguin23-Jun-11 8:37 
AnswerRe: MFC: Message-only CWnd in an SDI application. Pin
Albert Holguin23-Jun-11 8:33
professionalAlbert Holguin23-Jun-11 8:33 
QuestionExample of List control with Report view in MFC Pin
Amrit Agr23-Jun-11 0:12
Amrit Agr23-Jun-11 0:12 
AnswerRe: Example of List control with Report view in MFC Pin
«_Superman_»23-Jun-11 0:23
professional«_Superman_»23-Jun-11 0:23 
AnswerRe: Example of List control with Report view in MFC Pin
David Crow23-Jun-11 4:15
David Crow23-Jun-11 4:15 
QuestionHow to read data from a text file based on a deleimiter like ; Pin
Amrit Agr22-Jun-11 21:29
Amrit Agr22-Jun-11 21:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.