Click here to Skip to main content
16,005,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is there a better way to handle dialog class variables? Pin
Terry O'Nolley4-Aug-03 17:33
Terry O'Nolley4-Aug-03 17:33 
GeneralRe: Is there a better way to handle dialog class variables? Pin
John M. Drescher4-Aug-03 17:39
John M. Drescher4-Aug-03 17:39 
GeneralRe: Is there a better way to handle dialog class variables? Pin
Terry O'Nolley4-Aug-03 18:07
Terry O'Nolley4-Aug-03 18:07 
GeneralRe: Is there a better way to handle dialog class variables? Pin
John M. Drescher4-Aug-03 18:15
John M. Drescher4-Aug-03 18:15 
GeneralRe: Is there a better way to handle dialog class variables? Pin
John M. Drescher4-Aug-03 18:20
John M. Drescher4-Aug-03 18:20 
AnswerRe: Is there a better way to handle dialog class variables? Pin
PJ Arends4-Aug-03 17:02
professionalPJ Arends4-Aug-03 17:02 
GeneralRe: Is there a better way to handle dialog class variables? Pin
Terry O'Nolley4-Aug-03 17:57
Terry O'Nolley4-Aug-03 17:57 
GeneralRe: Is there a better way to handle dialog class variables? Pin
PJ Arends4-Aug-03 18:17
professionalPJ Arends4-Aug-03 18:17 
Terry O`Nolley wrote:
Isn't there a way to just pass variables from one dialog to another?

There are lot's of ways. You can do as John said and initialize the variables between the dialog class declaration and the DoModal() call. You can pass the values in via the constructor (write your own constructor, forget about ClassWizard, it is very limited), you could write your own DoModal() function that takes the required parameters, or, if your second dialog is modeless, you can use custom messages.

It seems all you are doing is creating an extra control, with all it's overhead, when all you really need is a CString member variable in your first dialog.







Sonork 100.11743 Chicken Little

"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

Within you lies the power for good - Use it!
GeneralRe: Is there a better way to handle dialog class variables? Pin
Terry O'Nolley5-Aug-03 4:10
Terry O'Nolley5-Aug-03 4:10 
GeneralRe: Is there a better way to handle dialog class variables? Pin
John M. Drescher4-Aug-03 18:27
John M. Drescher4-Aug-03 18:27 
GeneralRe: Is there a better way to handle dialog class variables? Pin
Terry O'Nolley5-Aug-03 4:20
Terry O'Nolley5-Aug-03 4:20 
GeneralRe: Is there a better way to handle dialog class variables? Pin
John M. Drescher5-Aug-03 4:51
John M. Drescher5-Aug-03 4:51 
GeneralRe: Is there a better way to handle dialog class variables? Pin
Terry O'Nolley5-Aug-03 5:02
Terry O'Nolley5-Aug-03 5:02 
GeneralRe: Is there a better way to handle dialog class variables? Pin
John M. Drescher5-Aug-03 5:28
John M. Drescher5-Aug-03 5:28 
GeneralRe: Is there a better way to handle dialog class variables? Pin
Terry O'Nolley5-Aug-03 6:10
Terry O'Nolley5-Aug-03 6:10 
GeneralStore procedure Pin
PrasadD4-Aug-03 12:38
PrasadD4-Aug-03 12:38 
GeneralRe: Store procedure Pin
David Crow5-Aug-03 2:53
David Crow5-Aug-03 2:53 
GeneralRFX_Binary Pin
FJK4-Aug-03 12:01
FJK4-Aug-03 12:01 
Generalchar array declaration Pin
edujule4-Aug-03 12:00
edujule4-Aug-03 12:00 
GeneralRe: char array declaration Pin
Ted Ferenc4-Aug-03 12:11
Ted Ferenc4-Aug-03 12:11 
GeneralRe: char array declaration Pin
Miszou4-Aug-03 16:19
Miszou4-Aug-03 16:19 
GeneralRe: char array declaration Pin
David Crow5-Aug-03 3:10
David Crow5-Aug-03 3:10 
GeneralBrowse Button in an Dialog Box Pin
ppathan4-Aug-03 11:46
ppathan4-Aug-03 11:46 
GeneralRe: Browse Button in an Dialog Box Pin
valikac4-Aug-03 13:05
valikac4-Aug-03 13:05 
GeneralRe: Browse Button in an Dialog Box Pin
HPSI4-Aug-03 16:24
HPSI4-Aug-03 16:24 

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.