Click here to Skip to main content
16,007,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: just a question... Pin
Todd Smith5-Aug-01 17:08
Todd Smith5-Aug-01 17:08 
GeneralRe: just a question... Pin
roel5-Aug-01 21:25
roel5-Aug-01 21:25 
GeneralRe: just a question... Pin
Todd Smith5-Aug-01 16:14
Todd Smith5-Aug-01 16:14 
GeneralRe: just a question... Pin
Todd Smith5-Aug-01 16:14
Todd Smith5-Aug-01 16:14 
GeneralRe: just a question... Pin
Kuniva5-Aug-01 22:41
Kuniva5-Aug-01 22:41 
GeneralStrings Pin
Peter Liddle5-Aug-01 4:45
Peter Liddle5-Aug-01 4:45 
GeneralRe: Strings Pin
Paolo Messina5-Aug-01 5:58
professionalPaolo Messina5-Aug-01 5:58 
GeneralMFC doc/view Pin
Wim Jans5-Aug-01 4:08
Wim Jans5-Aug-01 4:08 
Hello,

I want to be able to display a dialog (connect to database) before my view is displayed.
The dialog contains my connect information and I've included a variable based on the dialog class in my Document class.

In my main application I put following statement:
cmdInfo.m_nShellCommand=CCommandLineInfo::FileNothing;

This works fine.

I have a problem to figure out in which function I need to call the GetDocument()->m_dlg.DoModal()
I tried in OnCreate of my view, but I don't know what function to call if I press the cancel button in my dialog so I don't see any document/view. If I call return -1 in CMMyView::OnCreate, I get an error message saying that the creation of my view was not succesful.

If I put the DoModal in OnInitialUpdate I already see the docuemnt window and this is not what I want.

Please help me out on this one

Thanks

Wim Jans



GeneralRe: MFC doc/view Pin
Frank Deo5-Aug-01 4:24
Frank Deo5-Aug-01 4:24 
GeneralRe: MFC doc/view Pin
Michael Dunn5-Aug-01 8:16
sitebuilderMichael Dunn5-Aug-01 8:16 
GeneralRe: MFC doc/view Pin
Wim Jans5-Aug-01 11:05
Wim Jans5-Aug-01 11:05 
GeneralRe: MFC doc/view Pin
Frank Deo5-Aug-01 12:38
Frank Deo5-Aug-01 12:38 
GeneralRe: MFC doc/view Pin
Wim Jans5-Aug-01 21:21
Wim Jans5-Aug-01 21:21 
Generalfinding a string in a CString Pin
5-Aug-01 3:02
suss5-Aug-01 3:02 
GeneralRe: finding a string in a CString Pin
Steve Maier5-Aug-01 3:47
professionalSteve Maier5-Aug-01 3:47 
GeneralRe: finding a string in a CString Pin
Baafie5-Aug-01 3:51
Baafie5-Aug-01 3:51 
GeneralRe: finding a string in a CString Pin
Baafie5-Aug-01 3:51
Baafie5-Aug-01 3:51 
GeneralRe: finding a string in a CString Pin
#realJSOP5-Aug-01 5:02
professional#realJSOP5-Aug-01 5:02 
GeneralRemoving Help button from Wizard Pin
4-Aug-01 20:53
suss4-Aug-01 20:53 
GeneralRe: Removing Help button from Wizard Pin
Bill Leibold4-Aug-01 21:30
Bill Leibold4-Aug-01 21:30 
GeneralRe: Removing Help button from Wizard Pin
Paolo Messina5-Aug-01 5:54
professionalPaolo Messina5-Aug-01 5:54 
GeneralMaintaining Referential Integrity Pin
Reno Tiko4-Aug-01 15:37
Reno Tiko4-Aug-01 15:37 
GeneralUsing CTabCtrl Effectivelty Pin
AJ1234-Aug-01 12:11
AJ1234-Aug-01 12:11 
QuestionWhat's the difference? Pin
4-Aug-01 10:21
suss4-Aug-01 10:21 
AnswerRe: What's the difference? Pin
Chris Losinger4-Aug-01 10:26
professionalChris Losinger4-Aug-01 10:26 

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.