Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: is there any API in linux through which we can set static IP address or connect to DHCP Pin
an8910-Aug-08 22:47
an8910-Aug-08 22:47 
AnswerRe: is there any API in linux through which we can set static IP address or connect to DHCP Pin
Jijo.Raj10-Aug-08 23:00
Jijo.Raj10-Aug-08 23:00 
QuestionRe: is there any API in linux through which we can set static IP address or connect to DHCP [modified] Pin
Jijo.Raj10-Aug-08 23:12
Jijo.Raj10-Aug-08 23:12 
AnswerRe: is there any API in linux through which we can set static IP address or connect to DHCP Pin
markkuk11-Aug-08 1:23
markkuk11-Aug-08 1:23 
QuestionIdentifying and Terminating a particular local port. Pin
SelvaKr10-Aug-08 20:43
SelvaKr10-Aug-08 20:43 
AnswerRe: Identifying and Terminating a particular local port. Pin
Randor 11-Aug-08 16:26
professional Randor 11-Aug-08 16:26 
GeneralRe: Identifying and Terminating a particular local port. Pin
anilaabc11-Aug-08 23:07
anilaabc11-Aug-08 23:07 
QuestionCalling one dialog from the other [modified] Pin
bhanu_850910-Aug-08 20:28
bhanu_850910-Aug-08 20:28 
Dear All,

I have created a project (dialog based MFC) to display values in the .dat file. I have 4 dialogs and each of the one dialog should display appropriate values parsed from the .dat file. All the parsing methods have been done in a separate class (which is not a dialog).

I call the parsing method (separate class) from first dialog and when I open the second dialog (by a button click event from the first dialog) the values are displaying correctly. After that, if I go back to the first dialog (by a button click event from the second dialog) all the values seems to be disappeared. I am doing something wrong with my code, please help me.

//First dialog

void FirstDlg::OnBnClickedButton1()//processing the .dat file
{
initvalues();//belongs to another class
bool x=process_file();//belongs to another class which is public
if(x)
{
MessageBox(L"Processing file succeeded");
}
else
{
MessageBox(L"Processing file failed");
}
}

void FirstDlg::OnBnClickedButton2()
{
OnCancel();
SecondDlg ptr1;
ptr1.DoModal();	
DisplayValues();
}
//Second dialog
void SecondDlg::OnBnClickedButton1()
{
OnCancel();
FirstDlg ptr1;
ptr1.DoModal();	
DisplayValues();
}


modified on Tuesday, August 12, 2008 3:14 AM

AnswerRe: Calling one dialog from the other Pin
_AnsHUMAN_ 10-Aug-08 20:42
_AnsHUMAN_ 10-Aug-08 20:42 
GeneralRe: Calling one dialog from the other Pin
bhanu_850910-Aug-08 20:53
bhanu_850910-Aug-08 20:53 
GeneralRe: Calling one dialog from the other Pin
_AnsHUMAN_ 10-Aug-08 21:39
_AnsHUMAN_ 10-Aug-08 21:39 
AnswerRe: Calling one dialog from the other Pin
David Crow11-Aug-08 3:57
David Crow11-Aug-08 3:57 
GeneralRe: Calling one dialog from the other Pin
bhanu_850911-Aug-08 21:18
bhanu_850911-Aug-08 21:18 
QuestionRe: Calling one dialog from the other Pin
David Crow12-Aug-08 3:20
David Crow12-Aug-08 3:20 
AnswerRe: Calling one dialog from the other Pin
bhanu_850913-Aug-08 3:16
bhanu_850913-Aug-08 3:16 
GeneralRe: Calling one dialog from the other Pin
David Crow13-Aug-08 3:36
David Crow13-Aug-08 3:36 
GeneralRe: Calling one dialog from the other Pin
bhanu_850915-Aug-08 21:49
bhanu_850915-Aug-08 21:49 
GeneralRe: Calling one dialog from the other Pin
David Crow16-Aug-08 11:36
David Crow16-Aug-08 11:36 
Questionfatal error Pin
santhoshv8410-Aug-08 20:16
santhoshv8410-Aug-08 20:16 
AnswerRe: fatal error Pin
_AnsHUMAN_ 10-Aug-08 20:39
_AnsHUMAN_ 10-Aug-08 20:39 
GeneralRe: fatal error Pin
santhoshv8410-Aug-08 20:49
santhoshv8410-Aug-08 20:49 
GeneralRe: fatal error Pin
santhoshv8410-Aug-08 22:04
santhoshv8410-Aug-08 22:04 
AnswerRe: fatal error Pin
noxmortis12-Aug-08 5:09
noxmortis12-Aug-08 5:09 
AnswerRe: fatal error Pin
Stephen Hewitt10-Aug-08 21:36
Stephen Hewitt10-Aug-08 21:36 
AnswerRe: fatal error Pin
venera_soft11-Aug-08 0:14
venera_soft11-Aug-08 0:14 

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.