Click here to Skip to main content
15,915,775 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralConvert int to CString Pin
30-Apr-02 5:24
suss30-Apr-02 5:24 
GeneralRe: Convert int to CString Pin
Mike Zinni30-Apr-02 5:31
Mike Zinni30-Apr-02 5:31 
GeneralGet Integer Value from database Pin
30-Apr-02 5:52
suss30-Apr-02 5:52 
GeneralRe: Get Integer Value from database Pin
Nish Nishant30-Apr-02 6:03
sitebuilderNish Nishant30-Apr-02 6:03 
GeneralRe: Get Integer Value from database Pin
Alexandru Savescu30-Apr-02 6:29
Alexandru Savescu30-Apr-02 6:29 
GeneralRe: Get Integer Value from database Pin
Tom Archer30-Apr-02 7:43
Tom Archer30-Apr-02 7:43 
GeneralRe: Convert int to CString Pin
1-May-02 20:10
suss1-May-02 20:10 
GeneralLogin dialog problem Pin
solini30-Apr-02 5:23
solini30-Apr-02 5:23 
I'm building a Document/View based program.

When a user wants to use the program the following should happen:
a) A login dialog box should appear on the screen
b) If a user enters a valid login the program should become accessible
c) If a user enters invalid login information the program should end
d) And also if the user presses Cancel the program should end

something like this:

CDlgLogin dlg;
int nLogin = dlg.DoModal ( );
if( nLogin == IDOK )
{
//check login information
}
else if( nLogin == IDCANCEL )
{
//shutdown the program
}


What I'm not sure about is WHERE to put this information Confused | :confused:
I've tried the "ProgramView.cpp" and "MainFrm.cpp" files but I always get silly access violations or something like that when a user presses "Cancel"

What do I need to do for this to work ? Please please help me if you can Rose | [Rose]

Best wishes from Iceland Blush | :O
Solini
GeneralRe: Login dialog problem Pin
Thomas Freudenberg30-Apr-02 5:37
Thomas Freudenberg30-Apr-02 5:37 
GeneralRe: Login dialog problem Pin
Joaquín M López Muñoz30-Apr-02 5:39
Joaquín M López Muñoz30-Apr-02 5:39 
GeneralRe: Login dialog problem Pin
l a u r e n30-Apr-02 8:09
l a u r e n30-Apr-02 8:09 
GeneralRe: Login dialog problem - Solved Pin
30-Apr-02 8:16
suss30-Apr-02 8:16 
QuestionHowto change background color without redrawing content ? Pin
Brian van der Beek30-Apr-02 5:20
Brian van der Beek30-Apr-02 5:20 
AnswerRe: Howto change background color without redrawing content ? Pin
Joaquín M López Muñoz30-Apr-02 5:35
Joaquín M López Muñoz30-Apr-02 5:35 
GeneralRe: Howto change background color without redrawing content ? Pin
Brian van der Beek2-May-02 4:25
Brian van der Beek2-May-02 4:25 
GeneralExiting a DirectShow movie on keypress... Pin
30-Apr-02 5:12
suss30-Apr-02 5:12 
QuestionHow to get display card information by C++? Pin
yungivan30-Apr-02 5:00
yungivan30-Apr-02 5:00 
AnswerRe: How to get display card information by C++? Pin
Paul M Watt30-Apr-02 5:37
mentorPaul M Watt30-Apr-02 5:37 
GeneralSet mouse position Pin
ISIS5530-Apr-02 4:39
ISIS5530-Apr-02 4:39 
GeneralRe: Set mouse position Pin
Paul M Watt30-Apr-02 5:01
mentorPaul M Watt30-Apr-02 5:01 
GeneralRe: Set mouse position Pin
ISIS5530-Apr-02 9:36
ISIS5530-Apr-02 9:36 
GeneralRe: Set mouse position Pin
Paul M Watt30-Apr-02 10:02
mentorPaul M Watt30-Apr-02 10:02 
GeneralRe: Set mouse position Pin
ISIS5530-Apr-02 10:26
ISIS5530-Apr-02 10:26 
GeneralRe: Set mouse position Pin
Philippe Mori30-Apr-02 13:16
Philippe Mori30-Apr-02 13:16 
GeneralCWaitCursor Pin
Steve Hopkins30-Apr-02 4:21
Steve Hopkins30-Apr-02 4:21 

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.