Click here to Skip to main content
15,911,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionquestion on OLEDB?? Pin
ashxly10-Sep-03 15:46
ashxly10-Sep-03 15:46 
GeneralNeed some Help -- Kinda of Dense! Pin
Larry J. Siddens10-Sep-03 15:36
Larry J. Siddens10-Sep-03 15:36 
GeneralRe: Need some Help -- Kinda of Dense! Pin
PengFeidu10-Sep-03 20:52
PengFeidu10-Sep-03 20:52 
GeneralRe: Need some Help -- Kinda of Dense! Pin
Larry J. Siddens11-Sep-03 2:56
Larry J. Siddens11-Sep-03 2:56 
GeneralMinimizing Pin
Dov Sherman10-Sep-03 14:38
Dov Sherman10-Sep-03 14:38 
GeneralRe: Minimizing Pin
Michael Dunn10-Sep-03 14:54
sitebuilderMichael Dunn10-Sep-03 14:54 
Questionhow to link dialog to database Pin
coda_x10-Sep-03 14:13
coda_x10-Sep-03 14:13 
AnswerRe: how to link dialog to database Pin
David Crow11-Sep-03 3:05
David Crow11-Sep-03 3:05 
I'm unable to determine if you have two dialogs or just one. If two, then the button-click handler on dialog 1 will create an instance of dialog 2 and call its DoModal() method.

If, however, you are trying to associate a CRecordset with a CDialog, here are the steps:

1) Call the recordset's Open() method in the dialog's OnInitDialog().
2) Create some sort of "UpdateControls" method that updates the dialog's controls with the current CRecordset values.
3) In this "UpdateControls" method, simply call SetWindowText() for each control, like:

m_Name.SetWindowText(m_set.FirstName);<br />
m_Addr.SetWindowText(m_set.Address);<br />
m_State.SetWindowText(m_set.State);


Make sense?


Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?

GeneralRe: how to link dialog to database Pin
coda_x11-Sep-03 18:33
coda_x11-Sep-03 18:33 
GeneralRe: how to link dialog to database Pin
David Crow12-Sep-03 2:33
David Crow12-Sep-03 2:33 
GeneralRe: how to link dialog to database Pin
coda_x12-Sep-03 18:00
coda_x12-Sep-03 18:00 
GeneralRe: how to link dialog to database Pin
coda_x12-Sep-03 18:18
coda_x12-Sep-03 18:18 
GeneralRe: how to link dialog to database Pin
David Crow15-Sep-03 3:09
David Crow15-Sep-03 3:09 
QuestionHow to run a VB program in VC++ Pin
mr200310-Sep-03 13:29
mr200310-Sep-03 13:29 
AnswerRe: How to run a VB program in VC++ Pin
Xiangyang Liu 刘向阳10-Sep-03 15:26
Xiangyang Liu 刘向阳10-Sep-03 15:26 
GeneralRe: How to run a VB program in VC++ Pin
mr200310-Sep-03 16:16
mr200310-Sep-03 16:16 
GeneralRe: How to run a VB program in VC++ Pin
Michael P Butler11-Sep-03 1:37
Michael P Butler11-Sep-03 1:37 
GeneralNeed help with A I programming Pin
Snyp10-Sep-03 13:00
Snyp10-Sep-03 13:00 
GeneralRe: Need help with A I programming Pin
Dangleberry10-Sep-03 22:52
sussDangleberry10-Sep-03 22:52 
GeneralTree control getting grayed Pin
Binayak10-Sep-03 12:47
Binayak10-Sep-03 12:47 
GeneralUsing WS_HSCROLL in a dialog Pin
Marty1020304010-Sep-03 12:44
Marty1020304010-Sep-03 12:44 
GeneralRe: Using WS_HSCROLL in a dialog Pin
cje11-Sep-03 8:59
cje11-Sep-03 8:59 
GeneralRe: Using WS_HSCROLL in a dialog Pin
Marty1020304011-Sep-03 9:35
Marty1020304011-Sep-03 9:35 
GeneralQuestion about sockets&#8230; Pin
RobJones10-Sep-03 12:03
RobJones10-Sep-03 12:03 
GeneralRe: Question about sockets&#8230; Pin
Larry Antram10-Sep-03 12:27
Larry Antram10-Sep-03 12:27 

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.