Click here to Skip to main content
15,917,731 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ Daimond Problem Pin
Rinu_Raj25-May-08 15:57
Rinu_Raj25-May-08 15:57 
AnswerRe: C++ Daimond Problem Pin
Jijo.Raj25-May-08 18:40
Jijo.Raj25-May-08 18:40 
AnswerRe: C++ Daimond Problem Pin
SandipG 25-May-08 19:54
SandipG 25-May-08 19:54 
AnswerRe: C++ Daimond Problem Pin
ThatsAlok25-May-08 22:50
ThatsAlok25-May-08 22:50 
Questionmoving from on dialog box to the other Pin
lahom25-May-08 9:40
lahom25-May-08 9:40 
AnswerRe: moving from on dialog box to the other Pin
Nelek25-May-08 11:07
protectorNelek25-May-08 11:07 
GeneralRe: moving from on dialog box to the other Pin
lahom25-May-08 11:27
lahom25-May-08 11:27 
GeneralRe: moving from on dialog box to the other Pin
Nelek25-May-08 11:40
protectorNelek25-May-08 11:40 
lahom wrote:
if i have any kind of operation in one dialog and the result should appear on another dialog


Then just call the other dialog when you press in the button in either Modal or Modalless way (according to your needs), but for both... once you have called it you can access its public variables, so if you want to send anything to the second dialog, you have to have a variable/struc/class or whatever you need fitting it there.

One basic example:

OnPressButton ()
{
  //do your calculation
  CSecondDialog myDialog;
  myDialog.m_varResult = your_calculation_result;
  int nReturn = myDialog.DoModal ();

}


Greetings.
--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.

GeneralRe: moving from on dialog box to the other Pin
lahom25-May-08 11:52
lahom25-May-08 11:52 
GeneralRe: moving from on dialog box to the other Pin
Nelek25-May-08 12:28
protectorNelek25-May-08 12:28 
QuestionSOLVED CDatabase connection fails with different directory path. [modified] Pin
Vaclav_25-May-08 4:49
Vaclav_25-May-08 4:49 
QuestionRe: CDatabase connection fails with different directory path. Pin
bob1697225-May-08 6:35
bob1697225-May-08 6:35 
AnswerRe: CDatabase connection fails with different directory path. Pin
Vaclav_25-May-08 6:43
Vaclav_25-May-08 6:43 
QuestionRe: CDatabase connection fails with different directory path. Pin
bob1697225-May-08 9:35
bob1697225-May-08 9:35 
AnswerRe: CDatabase connection fails with different directory path. Pin
Vaclav_25-May-08 11:13
Vaclav_25-May-08 11:13 
GeneralRe: CDatabase connection fails with different directory path. Pin
bob1697225-May-08 15:30
bob1697225-May-08 15:30 
GeneralRe: CDatabase connection fails with different directory path. Pin
Vaclav_25-May-08 15:43
Vaclav_25-May-08 15:43 
GeneralRe: CDatabase connection fails with different directory path. Pin
bob1697225-May-08 15:37
bob1697225-May-08 15:37 
GeneralRe: CDatabase connection fails with different directory path. Pin
Vaclav_25-May-08 15:44
Vaclav_25-May-08 15:44 
GeneralRe: CDatabase connection fails with different directory path. Pin
bob1697225-May-08 16:45
bob1697225-May-08 16:45 
GeneralRe: CDatabase connection fails with different directory path. Pin
Vaclav_25-May-08 15:46
Vaclav_25-May-08 15:46 
QuestionRe: CDatabase connection fails with different directory path. Pin
bob1697225-May-08 16:47
bob1697225-May-08 16:47 
GeneralRe: CDatabase connection fails with different directory path. Pin
bob1697225-May-08 15:43
bob1697225-May-08 15:43 
GeneralRe: CDatabase connection fails with different directory path. Pin
Vaclav_26-May-08 4:06
Vaclav_26-May-08 4:06 
GeneralRe: CDatabase connection fails with different directory path. Pin
bob1697226-May-08 4:20
bob1697226-May-08 4:20 

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.