Click here to Skip to main content
15,895,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: char* as return type in dll Pin
_808614-Jun-09 4:21
_808614-Jun-09 4:21 
GeneralRe: char* as return type in dll Pin
0x3c014-Jun-09 6:44
0x3c014-Jun-09 6:44 
QuestionWhere does VC9 store its run time type info? Pin
followait13-Jun-09 16:55
followait13-Jun-09 16:55 
AnswerRe: Where does VC9 store its run time type info? Pin
harold aptroot13-Jun-09 22:44
harold aptroot13-Jun-09 22:44 
AnswerRe: Where does VC9 store its run time type info? Pin
Stuart Dootson14-Jun-09 2:26
professionalStuart Dootson14-Jun-09 2:26 
QuestionPassing CDialog results to CFormView ?? Pin
Vaclav_13-Jun-09 15:45
Vaclav_13-Jun-09 15:45 
AnswerRe: Passing CDialog results to CFormView ?? Pin
Stuart Dootson14-Jun-09 2:21
professionalStuart Dootson14-Jun-09 2:21 
AnswerRe: Passing CDialog results to CFormView ?? Pin
krmed14-Jun-09 4:23
krmed14-Jun-09 4:23 
When DoModal returns, the dialog box window (and combo box) have been destroyed, so attempting to access them won't work.

Instead, you could pass a pointer to the CFD2008View into the dialog - one way is
CDialog dlg(IDD_DIALOG1);
dlg.m_pView = this;
if (dlg.DoModal()...
Of course, you need to define a member variable in the dialog to hold this pointer (m_pView). Then in the view class, add member variables for the information you're trying to get. Now in the dialog's OnOK function, set the view class variable so they contain the desired information.

Note that getting the count, or a pointer to the combo box will be useless as it's going to be destroyed. If you need to know the value of a selected combo box items, you'll need to find that value in the dialog's OnOK, and set that value into the view class.

Hope that helps.

Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

GeneralRe: Passing CDialog results to CFormView SOLVED Pin
Vaclav_14-Jun-09 14:10
Vaclav_14-Jun-09 14:10 
QuestionEncryption / Decryption Pin
queries36513-Jun-09 10:01
queries36513-Jun-09 10:01 
QuestionDoubt - C [modified] Pin
musiclover9113-Jun-09 8:10
musiclover9113-Jun-09 8:10 
AnswerRe: Doubt - C Pin
_808613-Jun-09 21:47
_808613-Jun-09 21:47 
AnswerRe: Doubt - C Pin
killabyte14-Jun-09 1:28
killabyte14-Jun-09 1:28 
AnswerRe: Doubt - C Pin
Stuart Dootson14-Jun-09 2:19
professionalStuart Dootson14-Jun-09 2:19 
GeneralRe: Doubt - C Pin
musiclover9118-Jun-09 23:19
musiclover9118-Jun-09 23:19 
Questiontypedef struct constructor Pin
akira3213-Jun-09 6:50
akira3213-Jun-09 6:50 
AnswerRe: typedef struct constructor Pin
Ozer Karaagac13-Jun-09 7:20
professionalOzer Karaagac13-Jun-09 7:20 
QuestionHelp - Capture window to bitmap Pin
softwaremonkey13-Jun-09 5:25
softwaremonkey13-Jun-09 5:25 
AnswerRe: Help - Capture window to bitmap Pin
Randor 13-Jun-09 7:38
professional Randor 13-Jun-09 7:38 
GeneralRe: Help - Capture window to bitmap Pin
softwaremonkey13-Jun-09 21:24
softwaremonkey13-Jun-09 21:24 
QuestionCompare Images. Pin
FISH78613-Jun-09 5:18
FISH78613-Jun-09 5:18 
AnswerRe: Compare Images. Pin
Randor 13-Jun-09 6:12
professional Randor 13-Jun-09 6:12 
AnswerRe: Compare Images. Pin
PJ Arends13-Jun-09 6:29
professionalPJ Arends13-Jun-09 6:29 
QuestionCreating a MFC "Static" Dill Pin
Larry Mills Sr13-Jun-09 4:35
Larry Mills Sr13-Jun-09 4:35 
AnswerRe: Creating a MFC "Static" Dill Pin
Randor 13-Jun-09 5:50
professional Randor 13-Jun-09 5:50 

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.