Click here to Skip to main content
15,908,115 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: size of an empty class Pin
melwyn30-Jul-03 5:14
melwyn30-Jul-03 5:14 
GeneralRe: size of an empty class Pin
David Crow30-Jul-03 5:33
David Crow30-Jul-03 5:33 
GeneralRe: size of an empty class Pin
Joaquín M López Muñoz30-Jul-03 6:35
Joaquín M López Muñoz30-Jul-03 6:35 
GeneralRe: size of an empty class Pin
melwyn30-Jul-03 20:57
melwyn30-Jul-03 20:57 
GeneralCListCtrl scroll behaviour Pin
Brian van der Beek30-Jul-03 4:27
Brian van der Beek30-Jul-03 4:27 
Generalgdi+ Pin
wb30-Jul-03 4:14
wb30-Jul-03 4:14 
GeneralRe: gdi+ Pin
Kannan Kalyanaraman30-Jul-03 5:47
Kannan Kalyanaraman30-Jul-03 5:47 
QuestionRestarting a loop from another cpp file? Pin
keegan30-Jul-03 4:13
keegan30-Jul-03 4:13 
Ok, this is going to be confusing to explain, but simple to fix (me thinks).

I have a dialog box that pops up asking a user for a password. if they enter the icorrect password, another box pops up saying "Retry or Cancel". when the user hits Retry, i want it to start over (ie pop the password dialog box back up.)

Here's the code:

///*in PropsView.cpp*///
<br />
void CPropsView::OnWindowTransducers()<br />
{<br />
        m_password.DoModal();<br />
	bool bleh = g_password;<br />
	if(bleh == TRUE)<br />
	{<br />
		m_chsheet.DoModal(); //if pass is the right one, fo this<br />
	}<br />
	else<br />
	{<br />
		m_fail_pass.DoModal();//otherwise, propmt for a retry or to cancel<br />
		m_password.DestroyWindow();<br />
	}<br />
        g_password = FALSE;<br />
}<br />


in another cpp file, I have an OnOk() statement if the user hits "retry". But, since that onok is in another cpp file, i can't do m_fail_pass.DestroyWindow() to close the retry/cancel window, and i dont know how to make the loop start at the top again with the Password Dialog.

Does anyone get what i mean?


*.*
cin >> knowledge;
AnswerRe: Restarting a loop from another cpp file? Pin
David Crow30-Jul-03 4:23
David Crow30-Jul-03 4:23 
GeneralRe: Restarting a loop from another cpp file? Pin
keegan30-Jul-03 4:46
keegan30-Jul-03 4:46 
GeneralRe: Restarting a loop from another cpp file? Pin
David Crow30-Jul-03 4:52
David Crow30-Jul-03 4:52 
GeneralRe: [edit] Pin
keegan30-Jul-03 4:59
keegan30-Jul-03 4:59 
GeneralRe: Restarting a loop from another cpp file? Pin
David Crow30-Jul-03 5:08
David Crow30-Jul-03 5:08 
GeneralRe: Restarting a loop from another cpp file? Pin
keegan30-Jul-03 5:10
keegan30-Jul-03 5:10 
AnswerRe: Restarting a loop from another cpp file? Pin
John M. Drescher30-Jul-03 4:25
John M. Drescher30-Jul-03 4:25 
GeneralRe: Restarting a loop from another cpp file? Pin
keegan30-Jul-03 4:42
keegan30-Jul-03 4:42 
Questionhow can I warn to make a choice for numeric edit box? Pin
Emre Zorlu30-Jul-03 4:02
Emre Zorlu30-Jul-03 4:02 
AnswerRe: how can I warn to make a choice for numeric edit box? Pin
David Crow30-Jul-03 4:24
David Crow30-Jul-03 4:24 
GeneralRe: how can I warn to make a choice for numeric edit box? Pin
Emre Zorlu30-Jul-03 4:41
Emre Zorlu30-Jul-03 4:41 
GeneralRe: how can I warn to make a choice for numeric edit box? Pin
David Crow30-Jul-03 4:45
David Crow30-Jul-03 4:45 
GeneralRe: how can I warn to make a choice for numeric edit box? Pin
Emre Zorlu30-Jul-03 20:36
Emre Zorlu30-Jul-03 20:36 
GeneralRe: how can I warn to make a choice for numeric edit box? Pin
David Crow31-Jul-03 2:45
David Crow31-Jul-03 2:45 
AnswerRe: how can I warn to make a choice for numeric edit box? Pin
keegan30-Jul-03 4:54
keegan30-Jul-03 4:54 
GeneralAbout file manipulation Pin
Scozturk30-Jul-03 3:58
professionalScozturk30-Jul-03 3:58 
GeneralRe: About file manipulation Pin
Tim Smith30-Jul-03 4:07
Tim Smith30-Jul-03 4:07 

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.